From 4b1fc195cfe168d4da3107ba4b77c5e64f022463 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Wed, 15 Sep 2021 10:50:25 +0530 Subject: [PATCH] ui: Refresh Usage dashboard when swapping between Project and Default view (#5447) --- 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 e1b3c828cf9..bfda081add4 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.id) { + if (newValue && newValue !== oldValue) { this.fetchData() } }