mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
Fix for bug that causes overwritten app state
This commit is contained in:
parent
84069b431a
commit
7d74dc2426
1 changed files with 5 additions and 3 deletions
|
|
@ -96,18 +96,20 @@ function executeAction(_ref, event) {
|
|||
const modalId = event.options.modal;
|
||||
const modalMeta = _ref.state.appDefinition.components[modalId];
|
||||
|
||||
_ref.setState({
|
||||
const newState = {
|
||||
currentState: {
|
||||
..._ref.state.currentState,
|
||||
components: {
|
||||
..._ref.state.currentState,
|
||||
..._ref.state.currentState.components,
|
||||
[modalMeta.component.name]: {
|
||||
..._ref.state.currentState.components[modalMeta.component.name],
|
||||
show: true
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
_ref.setState(newState)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue