diff --git a/frontend/src/_helpers/appUtils.js b/frontend/src/_helpers/appUtils.js index 0eddcb915f..37ee3e8c82 100644 --- a/frontend/src/_helpers/appUtils.js +++ b/frontend/src/_helpers/appUtils.js @@ -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) } } }