diff --git a/examples/with-script-in-browser/components/ExampleApp.tsx b/examples/with-script-in-browser/components/ExampleApp.tsx index 365460a68b..afea3070d7 100644 --- a/examples/with-script-in-browser/components/ExampleApp.tsx +++ b/examples/with-script-in-browser/components/ExampleApp.tsx @@ -178,7 +178,8 @@ export default function ExampleApp({ const newElement = cloneElement( Excalidraw, { - onExcalidrawAPI: (api: ExcalidrawImperativeAPI | null) => setExcalidrawAPI(api), + onExcalidrawAPI: (api: ExcalidrawImperativeAPI | null) => + setExcalidrawAPI(api), initialData: initialStatePromiseRef.current.promise, onChange: ( elements: NonDeletedExcalidrawElement[],