From a17be085b0f5d623945482ca0bab4dd3f4000f64 Mon Sep 17 00:00:00 2001 From: Arun Kumar Date: Thu, 18 Mar 2021 16:06:28 +0530 Subject: [PATCH] Revert "Allow updating name on updateScene" This reverts commit 4e07a608d38a585e0f3c04e26b9f5e0e404824b1. --- src/components/App.tsx | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 4afe24cf8..7455e416a 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1309,18 +1309,11 @@ class App extends React.Component { 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) {