2
0
Эх сурвалжийг харах

Revert "Allow updating name on updateScene"

This reverts commit 4e07a608d38a585e0f3c04e26b9f5e0e404824b1.
Arun Kumar 4 жил өмнө
parent
commit
a17be085b0
1 өөрчлөгдсөн 5 нэмэгдсэн , 12 устгасан
  1. 5 12
      src/components/App.tsx

+ 5 - 12
src/components/App.tsx

@@ -1309,18 +1309,11 @@ class App extends React.Component<ExcalidrawProps, AppState> {
       history.resumeRecording();
     }
 
-    // currently we only support syncing background color and name
-    if (sceneData.appState) {
-      if (sceneData.appState.viewBackgroundColor) {
-        this.setState({
-          viewBackgroundColor: sceneData.appState.viewBackgroundColor,
-        });
-      }
-      if (sceneData.appState.name) {
-        this.setState({
-          name: sceneData.appState.name,
-        });
-      }
+    // currently we only support syncing background color
+    if (sceneData.appState?.viewBackgroundColor) {
+      this.setState({
+        viewBackgroundColor: sceneData.appState.viewBackgroundColor,
+      });
     }
 
     if (sceneData.elements) {