diff --git a/ui/src/components/admin/stats/Usages.vue b/ui/src/components/admin/stats/Usages.vue
index 0e527ac0dbf..1ef422d244d 100644
--- a/ui/src/components/admin/stats/Usages.vue
+++ b/ui/src/components/admin/stats/Usages.vue
@@ -9,7 +9,7 @@
{{ namespaces }}
-
+
@@ -155,6 +155,15 @@
flows() {
return this.usages.flows?.count ?? 0;
},
+ namespaceRoute() {
+ try {
+ this.$router.resolve({name: "namespaces/list"})
+ return "namespaces/list";
+
+ } catch (error) {
+ return "flows/list"
+ }
+ },
tasks() {
return this.aggregateValues(this.usages.flows?.taskTypeCount);
},