Skip to content

Commit c48d28b

Browse files
authored
Merge pull request #172 from Gid733/master
Changed confirmation case routing
2 parents 449823d + 3332458 commit c48d28b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,12 @@ export class CaseEditComponent implements OnInit, OnDestroy {
116116
}
117117

118118
navigateToReverse() {
119-
if (!this.reverseRoute) {
120-
this.router.navigate(['/cases/', this.currentTemplate.id]).then();
121-
} else {
119+
if (this.reverseRoute) {
122120
this.router.navigate([this.reverseRoute]);
123121
}
124122
}
125123

126124
canDeactivate(): Observable<boolean> | boolean {
127-
debugger;
128125
if (!this.isNoSaveExitAllowed) {
129126
this.caseConfirmation.show();
130127
return this.caseConfirmation.navigateAwaySelection$;

0 commit comments

Comments
 (0)