feat: stop pagination before emitting list settings
This commit is contained in:
@@ -26,7 +26,7 @@ export const RightSidePanel = () => {
|
|||||||
const [selectedPaginationSetting, setSelectedPaginationSetting] = useState<string | null>(null);
|
const [selectedPaginationSetting, setSelectedPaginationSetting] = useState<string | null>(null);
|
||||||
|
|
||||||
const { lastAction, notify } = useGlobalInfoStore();
|
const { lastAction, notify } = useGlobalInfoStore();
|
||||||
const { getText, startGetText, stopGetText, getScreenshot, startGetScreenshot, stopGetScreenshot, paginationMode, getList, startGetList, stopGetList, startPaginationMode } = useActionContext();
|
const { getText, startGetText, stopGetText, getScreenshot, startGetScreenshot, stopGetScreenshot, paginationMode, getList, startGetList, stopGetList, startPaginationMode, stopPaginationMode } = useActionContext();
|
||||||
const { browserSteps, updateBrowserTextStepLabel, deleteBrowserStep, addScreenshotStep } = useBrowserSteps();
|
const { browserSteps, updateBrowserTextStepLabel, deleteBrowserStep, addScreenshotStep } = useBrowserSteps();
|
||||||
const { socket } = useSocketStore();
|
const { socket } = useSocketStore();
|
||||||
|
|
||||||
@@ -132,6 +132,7 @@ export const RightSidePanel = () => {
|
|||||||
}, [stopGetList, resetListState]);
|
}, [stopGetList, resetListState]);
|
||||||
|
|
||||||
const stopCaptureAndEmitGetListSettings = useCallback(() => {
|
const stopCaptureAndEmitGetListSettings = useCallback(() => {
|
||||||
|
stopPaginationMode();
|
||||||
stopGetList();
|
stopGetList();
|
||||||
const settings = getListSettingsObject();
|
const settings = getListSettingsObject();
|
||||||
if (settings) {
|
if (settings) {
|
||||||
|
|||||||
Reference in New Issue
Block a user