Skip to content

Commit 588e9ac

Browse files
committed
Fixed reverse routing after saving case
1 parent 09eecdf commit 588e9ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eform-client/src/app/modules/cases/components/case-edit/case-edit.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ export class CaseEditComponent implements OnInit, OnDestroy {
117117

118118
navigateToReverse() {
119119
if (this.reverseRoute) {
120-
this.router.navigate([this.reverseRoute]);
120+
this.router.navigate([this.reverseRoute]).then();
121+
} else {
122+
this.router.navigate(['/cases/', this.currentTemplate.id]).then();
121123
}
122124
}
123125

0 commit comments

Comments
 (0)