mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
Fixes realtime update for global settings (#2898)
This commit is contained in:
parent
dcee0885d6
commit
571d3642b8
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue