From 25abded2da4fc6906d75b921e80d9802b030a1c1 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 6 Sep 2024 20:55:05 +0530 Subject: [PATCH] feat: notify if selector empty --- 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 84138bd6..5ff7df10 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -149,8 +149,10 @@ export const RightSidePanel = () => { setShowPaginationOptions(true); return; } + const settings = getListSettingsObject(); + const paginationSelector = settings.pagination?.selector if (['clickNext', 'clickLoadMore'].includes(selectedPaginationSetting)) { - if (selectedPaginationSetting === '') { + if (paginationSelector === '') { notify('error', 'Please select the pagination element first.'); } }