From d75ac78f127fd0f14f6da42afdbe31c82ed6878b Mon Sep 17 00:00:00 2001 From: Kiran Ashok Date: Thu, 27 Apr 2023 14:54:08 +0530 Subject: [PATCH] Fix :: Modal firing onOpen event more than once (#6124) --- frontend/src/Editor/Components/Modal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Editor/Components/Modal.jsx b/frontend/src/Editor/Components/Modal.jsx index c745f11fc7..34b81cc286 100644 --- a/frontend/src/Editor/Components/Modal.jsx +++ b/frontend/src/Editor/Components/Modal.jsx @@ -122,7 +122,7 @@ export const Modal = function Modal({ onClick={(event) => { event.stopPropagation(); setShowModal(true); - setExposedVariable('show', true).then(() => fireEvent('onOpen')); + setExposedVariable('show', true); }} data-cy={`${dataCy}-launch-button`} >