From 8984d8f19a278184c829a8c42f8f6e2e2c4f93c5 Mon Sep 17 00:00:00 2001 From: pomdtr Date: Wed, 29 Jun 2022 10:23:48 +0000 Subject: [PATCH] don't clean export options on load --- src/data/blob.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/blob.ts b/src/data/blob.ts index 19336cac6..2a455d039 100644 --- a/src/data/blob.ts +++ b/src/data/blob.ts @@ -1,5 +1,5 @@ import { nanoid } from "nanoid"; -import { cleanAppStateForTextExport } from "../appState"; +import { cleanAppStateForImageExport } from "../appState"; import { ALLOWED_IMAGE_MIME_TYPES, MIME_TYPES } from "../constants"; import { clearElementsForExport } from "../element"; import { ExcalidrawElement, FileId } from "../element/types"; @@ -143,7 +143,7 @@ export const loadSceneOrLibraryFromBlob = async ( appState: { theme: localAppState?.theme, fileHandle: fileHandle || blob.handle || null, - ...cleanAppStateForTextExport(data.appState || {}), + ...cleanAppStateForImageExport(data.appState || {}), ...(localAppState ? calculateScrollCenter( data.elements || [],