mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-19 15:31:04 +02:00
Import and export library from/to a file (#1940)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@ export const loadLibrary = (): Promise<LibraryItems> => {
|
||||
return resolve([]);
|
||||
}
|
||||
|
||||
const items = (JSON.parse(data) as ExcalidrawElement[][]).map(
|
||||
const items = (JSON.parse(data) as LibraryItems).map(
|
||||
(elements) => restore(elements, null).elements,
|
||||
) as Mutable<LibraryItems>;
|
||||
|
||||
|
Reference in New Issue
Block a user