diff --git a/src/context/browserSteps.tsx b/src/context/browserSteps.tsx index bdb0d298..d348ff35 100644 --- a/src/context/browserSteps.tsx +++ b/src/context/browserSteps.tsx @@ -66,14 +66,15 @@ export const BrowserStepsProvider: React.FC<{ children: React.ReactNode }> = ({ const existingListStep = updatedSteps[existingListStepIndex] as ListStep; updatedSteps[existingListStepIndex] = { ...existingListStep, - fields: { ...existingListStep.fields, ...newFields } + fields: { ...existingListStep.fields, ...newFields }, + pagination: pagination }; return updatedSteps; } else { // Create a new ListStep return [ ...prevSteps, - { id: listId, type: 'list', listSelector, fields: newFields } + { id: listId, type: 'list', listSelector, fields: newFields, pagination } ]; } });