Skip to content

Commit c2920b4

Browse files
fix infinite loading when listAccounts response is empty
1 parent 484ab10 commit c2920b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/view/SearchView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ export default {
779779
params.domainid = this.form.domainid
780780
}
781781
api('listAccounts', params).then(json => {
782-
var account = json.listaccountsresponse.account
782+
let account = json?.listaccountsresponse?.account || []
783783
if (this.form.domainid) {
784784
account = account.filter(a => a.domainid === this.form.domainid)
785785
}

0 commit comments

Comments
 (0)