fix restoring appState (#2182)

This commit is contained in:
David Luzar
2020-09-22 21:51:49 +02:00
committed by GitHub
parent b2822f3538
commit adb1ac5788
8 changed files with 74 additions and 49 deletions

View File

@@ -22,7 +22,7 @@ export const loadLibrary = (): Promise<LibraryItems> => {
}
const items = (JSON.parse(data) as LibraryItems).map(
(elements) => restore(elements, null).elements,
(elements) => restore({ elements, appState: null }).elements,
) as Mutable<LibraryItems>;
// clone to ensure we don't mutate the cached library elements in the app