From 8381941358d7dfe30b47a6c65a63709c510350bf Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 6 Sep 2024 09:25:44 +0530 Subject: [PATCH] feat: include pagination in addListStep --- src/context/browserSteps.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/browserSteps.tsx b/src/context/browserSteps.tsx index a42abfa0..bdb0d298 100644 --- a/src/context/browserSteps.tsx +++ b/src/context/browserSteps.tsx @@ -55,7 +55,7 @@ export const BrowserStepsProvider: React.FC<{ children: React.ReactNode }> = ({ ]); }; - const addListStep = (listSelector: string, newFields: { [key: string]: TextStep }, listId: number) => { + const addListStep = (listSelector: string, newFields: { [key: string]: TextStep }, listId: number, pagination?: { type: string; selector: string}) => { setBrowserSteps(prevSteps => { const existingListStepIndex = prevSteps.findIndex( step => step.type === 'list' && step.id === listId