feat: show error if paginationSetting emppty

This commit is contained in:
karishmas6
2024-09-06 12:23:50 +05:30
parent e90c095bae
commit 4d9208a128

View File

@@ -150,7 +150,9 @@ export const RightSidePanel = () => {
return;
}
if (['clickNext', 'clickLoadMore'].includes(selectedPaginationSetting)) {
notify('error', 'Please select the pagination element first.');
if (selectedPaginationSetting === '') {
notify('error', 'Please select the pagination element first.');
}
}
stopCaptureAndEmitGetListSettings();
setShowPaginationOptions(false);