From 1c88a3390ea748a3f158723b1d9edc193964b423 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 7 Sep 2024 06:44:39 +0530 Subject: [PATCH] feat: use limit in addListStep --- src/context/browserSteps.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/context/browserSteps.tsx b/src/context/browserSteps.tsx index 35c7a212..1c9dbf34 100644 --- a/src/context/browserSteps.tsx +++ b/src/context/browserSteps.tsx @@ -68,14 +68,15 @@ export const BrowserStepsProvider: React.FC<{ children: React.ReactNode }> = ({ updatedSteps[existingListStepIndex] = { ...existingListStep, fields: { ...existingListStep.fields, ...newFields }, - pagination: pagination + pagination: pagination, + limit: limit, }; return updatedSteps; } else { // Create a new ListStep return [ ...prevSteps, - { id: listId, type: 'list', listSelector, fields: newFields, pagination } + { id: listId, type: 'list', listSelector, fields: newFields, pagination, limit } ]; } });