From 0f81a142a64808f259293eed1a5c6e0a1fd09136 Mon Sep 17 00:00:00 2001 From: Harikrishna Patnala Date: Tue, 10 Oct 2023 14:15:58 +0530 Subject: [PATCH] Don't fetch data during logout --- ui/src/views/dashboard/UsageDashboard.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/views/dashboard/UsageDashboard.vue b/ui/src/views/dashboard/UsageDashboard.vue index 4264a90f925..a2cc1c4c485 100644 --- a/ui/src/views/dashboard/UsageDashboard.vue +++ b/ui/src/views/dashboard/UsageDashboard.vue @@ -143,7 +143,9 @@ export default { if (newValue && newValue.id && (!oldValue || newValue.id !== oldValue.id)) { this.fetchData() } else if (store.getters.userInfo.roletype !== 'Admin') { - this.fetchData() + if (!store.getters.logoutFlag) { + this.fetchData() + } } } )