fix: replace with setShowPaginationOPtions

This commit is contained in:
karishmas6
2024-08-31 00:57:45 +05:30
parent a98cb666d8
commit 005fdcad48

View File

@@ -131,12 +131,12 @@ export const RightSidePanel = () => {
const handleConfirmListCapture = useCallback(() => {
if (!selectedPaginationSetting) {
setShowListOptions(true);
setShowPaginationOptions(true);
return;
}
// Proceed to stop capture and emit settings only after option is selected
stopCaptureAndEmitGetListSettings();
setShowListOptions(false); // Reset options display
setShowPaginationOptions(false); // Reset options display
setSelectedPaginationSetting(null); // Reset selected option
}, [selectedPaginationSetting, stopCaptureAndEmitGetListSettings]);