mirror of
https://github.com/excalidraw/excalidraw.git
synced 2024-11-10 11:35:52 +01:00
Allow updating name on updateScene
This commit is contained in:
parent
c1379c3c10
commit
4e07a608d3
@ -1309,11 +1309,18 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||||||
history.resumeRecording();
|
history.resumeRecording();
|
||||||
}
|
}
|
||||||
|
|
||||||
// currently we only support syncing background color
|
// currently we only support syncing background color and name
|
||||||
if (sceneData.appState?.viewBackgroundColor) {
|
if (sceneData.appState) {
|
||||||
this.setState({
|
if (sceneData.appState.viewBackgroundColor) {
|
||||||
viewBackgroundColor: sceneData.appState.viewBackgroundColor,
|
this.setState({
|
||||||
});
|
viewBackgroundColor: sceneData.appState.viewBackgroundColor,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (sceneData.appState.name) {
|
||||||
|
this.setState({
|
||||||
|
name: sceneData.appState.name,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sceneData.elements) {
|
if (sceneData.elements) {
|
||||||
|
Loading…
Reference in New Issue
Block a user