feat: call handleStopGetList()
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user