mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-24 17:59:58 +02:00
Revert "Allow updating name on updateScene"
This reverts commit 4e07a608d3
.
This commit is contained in:
@@ -1309,19 +1309,12 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||||||
history.resumeRecording();
|
history.resumeRecording();
|
||||||
}
|
}
|
||||||
|
|
||||||
// currently we only support syncing background color and name
|
// currently we only support syncing background color
|
||||||
if (sceneData.appState) {
|
if (sceneData.appState?.viewBackgroundColor) {
|
||||||
if (sceneData.appState.viewBackgroundColor) {
|
|
||||||
this.setState({
|
this.setState({
|
||||||
viewBackgroundColor: sceneData.appState.viewBackgroundColor,
|
viewBackgroundColor: sceneData.appState.viewBackgroundColor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (sceneData.appState.name) {
|
|
||||||
this.setState({
|
|
||||||
name: sceneData.appState.name,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sceneData.elements) {
|
if (sceneData.elements) {
|
||||||
this.scene.replaceAllElements(sceneData.elements);
|
this.scene.replaceAllElements(sceneData.elements);
|
||||||
|
Reference in New Issue
Block a user