From efd66f071cdb507b13ff354ff1fa1c00427bb48d Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Fri, 27 Sep 2024 15:54:33 +0200 Subject: [PATCH] BUGFIX: navigation drawback on token refresh --- src/stores/admin/navigation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/admin/navigation.ts b/src/stores/admin/navigation.ts index 59f40bb..a63719e 100644 --- a/src/stores/admin/navigation.ts +++ b/src/stores/admin/navigation.ts @@ -118,7 +118,7 @@ export const useNavigationStore = defineStore("navigation", { ], }, } as navigationModel; - if (this.topLevel.findIndex((e) => e.key == this.activeLink) == -1 && !first) + if (this.activeNavigationObject.main.findIndex((e) => e.key == this.activeLink) == -1 && !first) router.push({ name: `admin-${this.activeNavigation}-default` }); }, },