mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-24 01:40:41 +02:00
fix restoring appState (#2182)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user