mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-22 08:50:56 +02:00
let host call convertToExcalidrawElements when using programmatic API
This commit is contained in:
@@ -304,7 +304,6 @@ import { jotaiStore } from "../jotai";
|
||||
import { activeConfirmDialogAtom } from "./ActiveConfirmDialog";
|
||||
import { actionWrapTextInContainer } from "../actions/actionBoundText";
|
||||
import BraveMeasureTextError from "./BraveMeasureTextError";
|
||||
import { convertToExcalidrawElements } from "../data/transform";
|
||||
import { activeEyeDropperAtom } from "./EyeDropper";
|
||||
|
||||
const AppContext = React.createContext<AppClassProperties>(null!);
|
||||
@@ -2097,9 +2096,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
}
|
||||
|
||||
if (sceneData.elements) {
|
||||
this.scene.replaceAllElements(
|
||||
convertToExcalidrawElements(sceneData.elements),
|
||||
);
|
||||
this.scene.replaceAllElements(sceneData.elements);
|
||||
}
|
||||
|
||||
if (sceneData.collaborators) {
|
||||
|
Reference in New Issue
Block a user