From 9f026f618183fe5f8fb320bef47c127dfb52bf39 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Thu, 15 Feb 2024 10:25:54 +0100 Subject: [PATCH] UI: load domain lists only if listDomains API is available --- ui/src/views/network/CreateIsolatedNetworkForm.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/views/network/CreateIsolatedNetworkForm.vue b/ui/src/views/network/CreateIsolatedNetworkForm.vue index c7aa3f8d5f9e..67b5ed4c4b72 100644 --- a/ui/src/views/network/CreateIsolatedNetworkForm.vue +++ b/ui/src/views/network/CreateIsolatedNetworkForm.vue @@ -497,8 +497,10 @@ export default { this.updateVPCCheckAndFetchNetworkOfferingData() }, fetchDomainData () { - this.domain.loading = true - this.loadMore('listDomains', 1, this.domain) + if ('listDomains' in this.$store.getters.apis) { + this.domain.loading = true + this.loadMore('listDomains', 1, this.domain) + } }, loadMore (apiToCall, page, sema) { const params = {}