From 4d9208a128fbfd54130ceaa9b0a75e89979fc8b8 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 6 Sep 2024 12:23:50 +0530 Subject: [PATCH] feat: show error if paginationSetting emppty --- src/components/organisms/RightSidePanel.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index e5e57170..84138bd6 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -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);