Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 3ddfe7e

Browse files
oodamienghillert
authored andcommitted
Routing History back: fix bug
1 parent 8eafe71 commit 3ddfe7e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/src/app/shared/services/routing-state.service.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ export class RoutingStateService {
5858
.find((history) => {
5959
return !isNotRegex || !(isNotRegex.test(history.url));
6060
});
61-
this.history = this.history.slice(0, this.history.indexOf(item));
62-
url = item.url;
61+
if (item) {
62+
this.history = this.history.slice(0, this.history.indexOf(item));
63+
url = item.url;
64+
}
6365
}
6466
this.router.navigate([url]);
6567
}

0 commit comments

Comments
 (0)