Skip to content

Commit 358e77c

Browse files
add missing optional chaining to handle inconsistent listAccounts API return
1 parent a65b584 commit 358e77c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/project/AddAccountOrUserToProject.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export default {
287287
params.keyword = keyword
288288
}
289289
api('listAccounts', params).then(response => {
290-
this.accounts = this.parseAccounts(response.listaccountsresponse.account)
290+
this.accounts = this.parseAccounts(response?.listaccountsresponse?.account)
291291
}).catch(error => {
292292
this.$notifyError(error)
293293
}).finally(() => {

0 commit comments

Comments
 (0)