diff --git a/frontend/src/_helpers/appUtils.js b/frontend/src/_helpers/appUtils.js index d14f2758b8..372fce26fa 100644 --- a/frontend/src/_helpers/appUtils.js +++ b/frontend/src/_helpers/appUtils.js @@ -290,26 +290,26 @@ function executeAction(_ref, event, mode, customVariables) { case 'set-custom-variable': { const key = resolveReferences(event.key, _ref.state.currentState, undefined, customVariables); const value = resolveReferences(event.value, _ref.state.currentState, undefined, customVariables); - const customVariables = { ..._ref.state.currentState.variables }; - customVariables[key] = value; + const customAppVariables = { ..._ref.state.currentState.variables }; + customAppVariables[key] = value; return _ref.setState({ currentState: { ..._ref.state.currentState, - variables: customVariables, + variables: customAppVariables, }, }); } case 'unset-custom-variable': { const key = resolveReferences(event.key, _ref.state.currentState, undefined, customVariables); - const customVariables = { ..._ref.state.currentState.variables }; - delete customVariables[key]; + const customAppVariables = { ..._ref.state.currentState.variables }; + delete customAppVariables[key]; return _ref.setState({ currentState: { ..._ref.state.currentState, - variables: customVariables, + variables: customAppVariables, }, }); }