fix: replace with setShowPaginationOPtions
This commit is contained in:
@@ -131,12 +131,12 @@ export const RightSidePanel = () => {
|
|||||||
|
|
||||||
const handleConfirmListCapture = useCallback(() => {
|
const handleConfirmListCapture = useCallback(() => {
|
||||||
if (!selectedPaginationSetting) {
|
if (!selectedPaginationSetting) {
|
||||||
setShowListOptions(true);
|
setShowPaginationOptions(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Proceed to stop capture and emit settings only after option is selected
|
// Proceed to stop capture and emit settings only after option is selected
|
||||||
stopCaptureAndEmitGetListSettings();
|
stopCaptureAndEmitGetListSettings();
|
||||||
setShowListOptions(false); // Reset options display
|
setShowPaginationOptions(false); // Reset options display
|
||||||
setSelectedPaginationSetting(null); // Reset selected option
|
setSelectedPaginationSetting(null); // Reset selected option
|
||||||
}, [selectedPaginationSetting, stopCaptureAndEmitGetListSettings]);
|
}, [selectedPaginationSetting, stopCaptureAndEmitGetListSettings]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user