3
0

Fix fetching the wrong application on namespace edit

This commit is contained in:
Jože Fortun
2022-11-23 11:10:24 +01:00
parent f740dd0020
commit 787ca65532
@@ -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]