This commit is contained in:
Aakansha Doshi 2023-05-03 13:41:41 +05:30
parent 7087db42c0
commit 59e8bf498d
9 changed files with 109 additions and 65 deletions

View file

@ -129,6 +129,7 @@ import {
import { LinearElementEditor } from "../element/linearElementEditor";
import { mutateElement, newElementWith } from "../element/mutateElement";
import {
convertToExcalidrawElements,
deepCopyElement,
duplicateElements,
newFreeDrawElement,
@ -2001,7 +2002,9 @@ class App extends React.Component<AppProps, AppState> {
}
if (sceneData.elements) {
this.scene.replaceAllElements(sceneData.elements);
this.scene.replaceAllElements(
convertToExcalidrawElements(sceneData.elements),
);
}
if (sceneData.collaborators) {