diff --git a/frontend/src/Editor/Viewer/Confirm.jsx b/frontend/src/Editor/Viewer/Confirm.jsx index b22aba26f5..0b825897c4 100644 --- a/frontend/src/Editor/Viewer/Confirm.jsx +++ b/frontend/src/Editor/Viewer/Confirm.jsx @@ -10,6 +10,7 @@ export function Confirm({ show, message, onConfirm, onCancel, queryConfirmationD }, [show]); const handleClose = () => { + onCancel(); setShow(false); }; @@ -18,18 +19,13 @@ export function Confirm({ show, message, onConfirm, onCancel, queryConfirmationD handleClose(); }; - const handleCancel = () => { - onCancel(); - handleClose(); - }; - return ( <>
{message} -