From 5fda4a2891c107ae2f20aa37ed3cac0f755a8c5b Mon Sep 17 00:00:00 2001 From: Gandharv Date: Tue, 1 Feb 2022 06:32:01 +0500 Subject: [PATCH] fix: save app on settings options change (#2051) --- frontend/src/Editor/Editor.jsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/Editor/Editor.jsx b/frontend/src/Editor/Editor.jsx index 0dcc985b5a..94e3242203 100644 --- a/frontend/src/Editor/Editor.jsx +++ b/frontend/src/Editor/Editor.jsx @@ -559,9 +559,14 @@ class Editor extends React.Component { const appDefinition = { ...this.state.appDefinition }; appDefinition.globalSettings[key] = value; - this.setState({ - appDefinition, - }); + this.setState( + { + appDefinition, + }, + () => { + this.autoSave(); + } + ); }; saveApp = (id, attributes, notify = false) => {