From a0583cbb503d5fed06094e46bfb41c6931bf6638 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 28 Sep 2021 14:27:59 +0200 Subject: [PATCH] fix: Double Redirect After Logout with Expired JWT --- frontend/src/views/Layout/DashboardLayout_gdd.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/Layout/DashboardLayout_gdd.vue b/frontend/src/views/Layout/DashboardLayout_gdd.vue index 35e7bb8af..8784b4312 100755 --- a/frontend/src/views/Layout/DashboardLayout_gdd.vue +++ b/frontend/src/views/Layout/DashboardLayout_gdd.vue @@ -101,7 +101,7 @@ export default { .catch(() => { this.$sidebar.displaySidebar(false) this.$store.dispatch('logout') - this.$router.push('/login') + if (this.$router.currentRoute.path !== '/login') this.$router.push('/login') }) }, async updateTransactions(pagination) {