diff --git a/src/components/recorder/RightSidePanel.tsx b/src/components/recorder/RightSidePanel.tsx index 6027e26d3..9bbbc8b26 100644 --- a/src/components/recorder/RightSidePanel.tsx +++ b/src/components/recorder/RightSidePanel.tsx @@ -423,6 +423,8 @@ export const RightSidePanel: React.FC = ({ onFinishCapture } }); resetListState(); + stopPaginationMode(); + stopLimitMode(); setShowPaginationOptions(false); setShowLimitOptions(false); setCaptureStage('initial'); diff --git a/src/context/browserActions.tsx b/src/context/browserActions.tsx index bc377bbb6..42f9f95e4 100644 --- a/src/context/browserActions.tsx +++ b/src/context/browserActions.tsx @@ -68,7 +68,10 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => { socket?.emit('setPaginationMode', { pagination: true }); }; - const stopPaginationMode = () => setPaginationMode(false); + const stopPaginationMode = () => { + setPaginationMode(false); + socket?.emit('setPaginationMode', { pagination: false }); + }; const startLimitMode = () => { setLimitMode(true); @@ -88,6 +91,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => { const stopGetList = () => { setGetList(false); + socket?.emit('setGetList', { getList: false }); setPaginationType(''); setLimitType(''); setCustomLimit('');