From a43cb1b5e906a673ea9a9e9a3be63f68c149e63e 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 28a892ac71e4..e0659b954bae 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() + } } } )