Skip to content

Commit

Permalink
Revert "fix back button on summary page when changing a field"
Browse files Browse the repository at this point in the history
This reverts commit e090b54.
  • Loading branch information
emilyjevans committed Jun 12, 2024
1 parent 0dbb515 commit a91a9a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions runner/src/server/plugins/engine/models/SummaryViewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export class SummaryViewModel {
message: string;
}[]
| undefined;
backLink?: string;

_outputs: any; // TODO
_payApiKey: FormDefinition["payApiKey"];
Expand All @@ -68,7 +67,6 @@ export class SummaryViewModel {
) {
this.pageTitle = pageTitle;
this.name = model.name;
this.backLink = state?.progress?.[state?.progress.length - 1];
const { relevantPages, endPage } = this.getRelevantPages(model, state);
const details = this.summaryDetails(request, model, state, relevantPages);
const { def } = model;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class SummaryPageController extends PageController {

await cacheService.mergeState(request, { progress });

// viewModel.backLink = progress[progress.length - 2];
viewModel.backLink = progress[progress.length - 2];

if (viewModel.endPage) {
return redirectTo(
Expand Down

0 comments on commit a91a9a3

Please sign in to comment.