From b3f1e5f385958fcfe2eaece592c4e40d0f0de002 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 4 Sep 2024 05:34:56 +0530 Subject: [PATCH] feat: call handleStopGetList() --- src/components/organisms/RightSidePanel.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index ee8dce7b..7dc12e2a 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -122,14 +122,14 @@ export const RightSidePanel = () => { }, [browserSteps, selectedPaginationSetting]); const resetListState = useCallback(() => { - setShowPaginationOptions(false); - setSelectedPaginationSetting(null); - }, []); + setShowPaginationOptions(false); + setSelectedPaginationSetting(null); +}, []); - const handleStopGetList = useCallback(() => { - stopGetList(); - resetListState(); - }, [stopGetList, resetListState]); +const handleStopGetList = useCallback(() => { + stopGetList(); + resetListState(); +}, [stopGetList, resetListState]); const stopCaptureAndEmitGetListSettings = useCallback(() => { @@ -140,7 +140,8 @@ export const RightSidePanel = () => { } else { notify('error', 'Unable to create list settings. Make sure you have defined a field for the list.'); } - }, [stopGetList, getListSettingsObject, socket, notify]); + handleStopGetList(); + }, [stopGetList, getListSettingsObject, socket, notify, handleStopGetList]); const handleConfirmListCapture = useCallback(() => { if (!selectedPaginationSetting) {