From e465a43f77f5b3e0828b1052d96abb8ff99963a7 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Wed, 3 May 2023 15:44:18 +0530 Subject: [PATCH] fix --- src/excalidraw-app/index.tsx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/excalidraw-app/index.tsx b/src/excalidraw-app/index.tsx index 38beb66123..b2c7808570 100644 --- a/src/excalidraw-app/index.tsx +++ b/src/excalidraw-app/index.tsx @@ -346,22 +346,7 @@ const ExcalidrawWrapper = () => { initializeScene({ collabAPI, excalidrawAPI }).then(async (data) => { loadImages(data, /* isInitialLoad */ true); - initialStatePromiseRef.current.promise.resolve({ - type: "excalidraw", - version: 2, - source: "http://localhost:3000", - elements: [ - { - type: "rectangle", - children: [{ text: "HELLO DAMMMMY" }], - }, - ], - appState: { - gridSize: null, - viewBackgroundColor: "#ffffff", - }, - files: {}, - }); + initialStatePromiseRef.current.promise.resolve(data.scene); }); const onHashChange = async (event: HashChangeEvent) => {