fix: use selectedPaginationSetting
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user