feat: call handleStopGetList()

This commit is contained in:
karishmas6
2024-09-04 05:34:56 +05:30
parent c594633b74
commit b3f1e5f385

View File

@@ -122,14 +122,14 @@ export const RightSidePanel = () => {
}, [browserSteps, selectedPaginationSetting]); }, [browserSteps, selectedPaginationSetting]);
const resetListState = useCallback(() => { const resetListState = useCallback(() => {
setShowPaginationOptions(false); setShowPaginationOptions(false);
setSelectedPaginationSetting(null); setSelectedPaginationSetting(null);
}, []); }, []);
const handleStopGetList = useCallback(() => { const handleStopGetList = useCallback(() => {
stopGetList(); stopGetList();
resetListState(); resetListState();
}, [stopGetList, resetListState]); }, [stopGetList, resetListState]);
const stopCaptureAndEmitGetListSettings = useCallback(() => { const stopCaptureAndEmitGetListSettings = useCallback(() => {
@@ -140,7 +140,8 @@ export const RightSidePanel = () => {
} else { } else {
notify('error', 'Unable to create list settings. Make sure you have defined a field for the list.'); 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(() => { const handleConfirmListCapture = useCallback(() => {
if (!selectedPaginationSetting) { if (!selectedPaginationSetting) {