From 51b1daec7fe36e9865f1a3a6aeeb5b0043a5e91a Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 8 Sep 2024 07:40:18 +0530 Subject: [PATCH] feat: call onFinishCapture() after emitting settings --- src/components/organisms/RightSidePanel.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index a2ab0f02..0f46b769 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -88,6 +88,7 @@ export const RightSidePanel: React.FC = ({ onFinishCapture if (hasTextSteps) { socket?.emit('action', { action: 'scrapeSchema', settings }); } + onFinishCapture(); }, [stopGetText, getTextSettingsObject, socket, browserSteps, confirmedTextSteps]); @@ -143,6 +144,7 @@ export const RightSidePanel: React.FC = ({ onFinishCapture notify('error', 'Unable to create list settings. Make sure you have defined a field for the list.'); } handleStopGetList(); + onFinishCapture(); }, [stopGetList, getListSettingsObject, socket, notify, handleStopGetList]); const handleConfirmListCapture = useCallback(() => {