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]);
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) {