Abstract away or eliminate most of the mutation of the Elements array (#955)
This commit is contained in:
@ -14,7 +14,7 @@ export function serializeAsJSON(
|
||||
type: "excalidraw",
|
||||
version: 1,
|
||||
source: window.location.origin,
|
||||
elements,
|
||||
elements: elements.filter(element => !element.isDeleted),
|
||||
appState: cleanAppStateForExport(appState),
|
||||
},
|
||||
null,
|
||||
|
Reference in New Issue
Block a user