feat: set paginationType empty

This commit is contained in:
karishmas6
2024-09-06 11:33:47 +05:30
parent d630da6e60
commit f6edb48304

View File

@@ -187,7 +187,7 @@ export const BrowserWindow = () => {
if (paginationMode && getList) {
// Set the pagination selector
const paginationType = 'clickNext'; // You can get this from user selection or UI
addListStep(listSelector!, fields, currentListId || 0, { type: paginationType, selector: highlighterData.selector });
addListStep(listSelector!, fields, currentListId || 0, { type: '', selector: highlighterData.selector });
console.log(
`Pagination mode: ${paginationType} with selector: ${highlighterData.selector}`
);
@@ -221,7 +221,7 @@ export const BrowserWindow = () => {
}));
if (listSelector) {
addListStep(listSelector, { ...fields, [newField.label]: newField }, currentListId, { type: 'clickNext', selector: highlighterData.selector });
addListStep(listSelector, { ...fields, [newField.label]: newField }, currentListId, { type: '', selector: highlighterData.selector });
}
} else {