From e41f239cc59dfaf26521a4cca06b7721e760f99d Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Thu, 24 Aug 2023 17:04:43 +0530 Subject: [PATCH] chore: fix build errors --- packages/web/src/javascripts/Application/WebApplication.ts | 4 ++-- .../Plugins/RemoteImagePlugin/RemoteImageComponent.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web/src/javascripts/Application/WebApplication.ts b/packages/web/src/javascripts/Application/WebApplication.ts index dbc0f4ece..b98773544 100644 --- a/packages/web/src/javascripts/Application/WebApplication.ts +++ b/packages/web/src/javascripts/Application/WebApplication.ts @@ -355,7 +355,7 @@ export class WebApplication extends SNApplication implements WebApplicationInter const filesController = this.filesController const blob = getBlobFromBase64(file.data, file.mimeType) const mappedFile = new File([blob], file.name, { type: file.mimeType }) - filesController.uploadNewFile(mappedFile, true).catch(console.error) + filesController.uploadNewFile(mappedFile).catch(console.error) } async handleReceivedTextEvent({ text, title }: { text: string; title?: string | undefined }) { @@ -397,7 +397,7 @@ export class WebApplication extends SNApplication implements WebApplicationInter const file = new File([imgBlob], finalPath, { type: imgBlob.type, }) - this.filesController.uploadNewFile(file, true).catch(console.error) + this.filesController.uploadNewFile(file).catch(console.error) } catch (error) { console.error(error) } finally { diff --git a/packages/web/src/javascripts/Components/SuperEditor/Plugins/RemoteImagePlugin/RemoteImageComponent.tsx b/packages/web/src/javascripts/Components/SuperEditor/Plugins/RemoteImagePlugin/RemoteImageComponent.tsx index adcd6b35c..8c5b21109 100644 --- a/packages/web/src/javascripts/Components/SuperEditor/Plugins/RemoteImagePlugin/RemoteImageComponent.tsx +++ b/packages/web/src/javascripts/Components/SuperEditor/Plugins/RemoteImagePlugin/RemoteImageComponent.tsx @@ -44,7 +44,7 @@ const RemoteImageComponent = ({ className, src, alt, node, format, nodeKey }: Pr const { filesController, linkingController } = application - const uploadedFile = await filesController.uploadNewFile(file, false) + const uploadedFile = await filesController.uploadNewFile(file, { showToast: false }) if (!uploadedFile) { return