fix: incorrectly caching png file handle (#3407)

This commit is contained in:
David Luzar
2021-04-06 21:27:15 +02:00
committed by GitHub
parent 34761200bf
commit 1e48aafb9c
2 changed files with 2 additions and 9 deletions

View File

@ -95,7 +95,7 @@ export const loadFromBlob = async (
elements: clearElementsForExport(data.elements || []),
appState: {
theme: localAppState?.theme,
fileHandle: blob.handle ?? null,
fileHandle: (!blob.type.startsWith("image/") && blob.handle) || null,
...cleanAppStateForExport(data.appState || {}),
...(localAppState
? calculateScrollCenter(data.elements || [], localAppState, null)