fix: save app on settings options change (#2051)

This commit is contained in:
Gandharv 2022-02-01 06:32:01 +05:00 committed by GitHub
parent b85c4088f2
commit 5fda4a2891
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) => {