Skip to content

Commit

Permalink
add missing optional chaining to handle inconsistent listAccounts API…
Browse files Browse the repository at this point in the history
… return
  • Loading branch information
bernardodemarco committed Nov 14, 2024
1 parent a65b584 commit 358e77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/views/project/AddAccountOrUserToProject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 358e77c

Please # to comment.