From ca870dfc73ce1f0f011005487dce0bb7cf51b4f1 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Mon, 20 Sep 2021 20:50:19 +0530 Subject: [PATCH] UI: Fixes issue during logout as user / domain admin (#5476) --- ui/src/views/dashboard/UsageDashboard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/views/dashboard/UsageDashboard.vue b/ui/src/views/dashboard/UsageDashboard.vue index bfda081add4..66b8395c7b3 100644 --- a/ui/src/views/dashboard/UsageDashboard.vue +++ b/ui/src/views/dashboard/UsageDashboard.vue @@ -137,7 +137,7 @@ export default { this.$store.watch( (state, getters) => getters.project, (newValue, oldValue) => { - if (newValue && newValue !== oldValue) { + if (newValue && (!oldValue || newValue.id !== oldValue.id)) { this.fetchData() } }