From 358e77c415136b7f0d80bce374f6f5b758c709d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernardo=20De=20Marco=20Gon=C3=A7alves?= Date: Thu, 14 Nov 2024 08:47:14 -0300 Subject: [PATCH] add missing optional chaining to handle inconsistent listAccounts API return --- ui/src/views/project/AddAccountOrUserToProject.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/views/project/AddAccountOrUserToProject.vue b/ui/src/views/project/AddAccountOrUserToProject.vue index 65e47e03511d..bb5fb0884c62 100644 --- a/ui/src/views/project/AddAccountOrUserToProject.vue +++ b/ui/src/views/project/AddAccountOrUserToProject.vue @@ -287,7 +287,7 @@ export default { params.keyword = keyword } api('listAccounts', params).then(response => { - this.accounts = this.parseAccounts(response.listaccountsresponse.account) + this.accounts = this.parseAccounts(response?.listaccountsresponse?.account) }).catch(error => { this.$notifyError(error) }).finally(() => {