From af49c9ef80f8d4231087749047b1aa98872fd9d2 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 6 Sep 2024 21:02:31 +0530 Subject: [PATCH] feat: set current selector as pagination selector if in pagination mode --- src/components/organisms/BrowserWindow.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/organisms/BrowserWindow.tsx b/src/components/organisms/BrowserWindow.tsx index 6e8a1bba..79a99a76 100644 --- a/src/components/organisms/BrowserWindow.tsx +++ b/src/components/organisms/BrowserWindow.tsx @@ -185,8 +185,13 @@ export const BrowserWindow = () => { } } - if (paginationMode && getList) { - addListStep(listSelector!, fields, currentListId || 0, { type: '', selector: highlighterData.selector }); + // if (paginationMode && getList) { + // addListStep(listSelector!, fields, currentListId || 0, { type: '', selector: highlighterData.selector }); + // return; + // } + + if (paginationMode && getList && !paginationSelector) { + setPaginationSelector(highlighterData.selector); return; }