From feae3c2f2d5336217deda21deb92674c3b97db95 Mon Sep 17 00:00:00 2001 From: arpitnath Date: Tue, 3 Oct 2023 19:52:21 +0530 Subject: [PATCH] fixes: cloning of widgets --- frontend/src/Editor/EditorFunc.jsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/Editor/EditorFunc.jsx b/frontend/src/Editor/EditorFunc.jsx index 327f228668..fb68366e27 100644 --- a/frontend/src/Editor/EditorFunc.jsx +++ b/frontend/src/Editor/EditorFunc.jsx @@ -1059,6 +1059,15 @@ const EditorComponent = (props) => { cloneComponents(selectedComponents, appDefinition, currentPageId, appDefinitionChanged, false, true); }; + const cloningComponents = () => { + if (isVersionReleased) { + useAppVersionStore.getState().actions.enableReleasedVersionPopupState(); + + return; + } + cloneComponents(selectedComponents, appDefinition, currentPageId, appDefinitionChanged, true, false); + }; + const handleEditorEscapeKeyPress = () => { if (selectedComponents?.length > 0) { updateEditorState({ @@ -1673,7 +1682,7 @@ const EditorComponent = (props) => {