Skip to content

Commit

Permalink
test(e2e): Correctly handle sections when Resuming
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Jul 10, 2024
1 parent b60756d commit c4f9bd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor.planx.uk/src/pages/FlowEditor/lib/store/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ export const previewStore: StateCreator<
});
}
}
updateSectionData();
setCurrentCard();
updateSectionData();
},

resultData(flagSet, overrides) {
Expand All @@ -380,6 +380,7 @@ export const previewStore: StateCreator<

resumeSession(session: Session) {
set({ ...session });
get().setCurrentCard();
get().updateSectionData();
},

Expand Down

0 comments on commit c4f9bd2

Please sign in to comment.