feat: include pagination in addListStep

This commit is contained in:
karishmas6
2024-09-06 09:25:44 +05:30
parent a24e45412e
commit 8381941358

View File

@@ -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