Skip to content

Commit

Permalink
Merge pull request #4949 from NMDSdevopsServiceAdm/feat/workplaceDeta…
Browse files Browse the repository at this point in the history
…ilsLeavers

removed confirm interuption from leavers component
  • Loading branch information
Jonopono123 authored May 31, 2022
2 parents 1f8c830 + 955ce3f commit dda0042
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/features/workplace/leavers/leavers.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,7 @@ export class LeaversComponent extends Question implements OnInit, OnDestroy {
}

protected onSuccess(): void {
if (this.establishment.leavers && Array.isArray(this.establishment.leavers) && !this.return) {
this.router.navigate(['/workplace', this.establishment.uid, 'confirm-leavers']);
this.submitAction.action = null;
} else {
this.nextRoute = ['/workplace', `${this.establishment.uid}`, 'check-answers'];
}
this.nextRoute = ['/workplace', `${this.establishment.uid}`, 'check-answers'];
}

private clearValidators(index: number) {
Expand Down

0 comments on commit dda0042

Please sign in to comment.