From 787ca65532033c3ce52372cf0ac65c095a9982ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Wed, 23 Nov 2022 11:10:24 +0100 Subject: [PATCH] Fix fetching the wrong application on namespace edit --- client/web/compose/src/views/Namespace/Edit.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/web/compose/src/views/Namespace/Edit.vue b/client/web/compose/src/views/Namespace/Edit.vue index 46e858609..e57b8f632 100644 --- a/client/web/compose/src/views/Namespace/Edit.vue +++ b/client/web/compose/src/views/Namespace/Edit.vue @@ -482,7 +482,8 @@ export default { }, fetchApplication () { - this.$SystemAPI.applicationList({ name: this.namespace.slug }) + const { namespaceID, slug } = this.namespace + this.$SystemAPI.applicationList({ name: slug || namespaceID }) .then(({ set = [] }) => { if (set.length) { this.application = set[0]