From 571d3642b88992b4fd359b18457b1592207e9c44 Mon Sep 17 00:00:00 2001 From: Gandharv Date: Tue, 26 Apr 2022 14:18:34 +0530 Subject: [PATCH] Fixes realtime update for global settings (#2898) --- frontend/src/Editor/Editor.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/Editor/Editor.jsx b/frontend/src/Editor/Editor.jsx index 31a3902a7b..634abda34a 100644 --- a/frontend/src/Editor/Editor.jsx +++ b/frontend/src/Editor/Editor.jsx @@ -570,13 +570,16 @@ class Editor extends React.Component { globalSettingsChanged = (key, value) => { const appDefinition = { ...this.state.appDefinition }; - appDefinition.globalSettings[key] = value; this.setState( { appDefinition, }, () => { + this.props.ymap.set('appDef', { + newDefinition: appDefinition, + editingVersionId: this.state.editingVersion?.id, + }); this.autoSave(); } );