fix: use selectedPaginationSetting

This commit is contained in:
karishmas6
2024-08-31 00:01:23 +05:30
parent a94ce3a0b2
commit e5a04c53dc

View File

@@ -130,7 +130,7 @@ export const RightSidePanel = () => {
// }; // };
const handleConfirmListCapture = useCallback(() => { const handleConfirmListCapture = useCallback(() => {
if (!selectedOption) { if (!selectedPaginationSetting) {
setShowListOptions(true); setShowListOptions(true);
return; return;
} }
@@ -138,7 +138,7 @@ export const RightSidePanel = () => {
stopCaptureAndEmitGetListSettings(); stopCaptureAndEmitGetListSettings();
setShowListOptions(false); // Reset options display setShowListOptions(false); // Reset options display
setSelectedOption(null); // Reset selected option setSelectedOption(null); // Reset selected option
}, [selectedOption, stopCaptureAndEmitGetListSettings]); }, [selectedPaginationSetting, stopCaptureAndEmitGetListSettings]);
const captureScreenshot = (fullPage: boolean) => { const captureScreenshot = (fullPage: boolean) => {