From 8dc529c60032f75cf3641b9a7fed62d5abbbc75a Mon Sep 17 00:00:00 2001 From: arpitnath Date: Wed, 13 Sep 2023 18:46:23 +0530 Subject: [PATCH] fixes: csa for modals --- frontend/src/Editor/EditorFunc.jsx | 1 + frontend/src/_helpers/appUtils.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/Editor/EditorFunc.jsx b/frontend/src/Editor/EditorFunc.jsx index c4cccb8d58..df11bf5dc5 100644 --- a/frontend/src/Editor/EditorFunc.jsx +++ b/frontend/src/Editor/EditorFunc.jsx @@ -1435,6 +1435,7 @@ const EditorComponent = (props) => { updateQueryConfirmationList: updateQueryConfirmationList, navigate: props.navigate, switchPage: switchPage, + currentPageId: currentPageId, }; if (isLoading) { diff --git a/frontend/src/_helpers/appUtils.js b/frontend/src/_helpers/appUtils.js index 797d98939b..67faeef41f 100644 --- a/frontend/src/_helpers/appUtils.js +++ b/frontend/src/_helpers/appUtils.js @@ -354,7 +354,7 @@ function showModal(_ref, modal, show) { return Promise.resolve(); } - const modalMeta = _ref.appDefinition.pages[_ref.state.currentPageId].components[modalId]; //! NeedToFix + const modalMeta = _ref.appDefinition.pages[_ref.currentPageId].components[modalId]; //! NeedToFix const _components = { ...getCurrentState().components,