Virtual whiteboard for sketching hand-drawn like diagrams
fix: #5622 - prevent session theme reset during collaboration (#5640)
Abdullah Adeelb3052f017889
diff --git a/src/excalidraw-app/index.tsx b/src/excalidraw-app/index.tsxindex 896c96d987..ebe6ed8eb5 100644--- a/src/excalidraw-app/index.tsx+++ b/src/excalidraw-app/index.tsx@@ -194,7 +194,13 @@ const initializeScene = async (opts: {scene: {...scene,appState: {- ...restoreAppState(scene?.appState, excalidrawAPI.getAppState()),+ ...restoreAppState(+ {+ ...scene?.appState,+ theme: localDataState?.appState?.theme || scene?.appState?.theme,+ },+ excalidrawAPI.getAppState(),+ ),// necessary if we're invoking from a hashchange handler which doesn't// go through App.initializeScene() that resets this flagisLoading: false,