From fda71f04e01f99f3cc9f30b89060936e82fde869 Mon Sep 17 00:00:00 2001 From: Sherfin Shamsudeen Date: Wed, 13 Apr 2022 15:42:00 +0530 Subject: [PATCH] Ensure listItem is exposed for set/unset custom variables handler (#2813) --- frontend/src/_helpers/appUtils.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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, }, }); }