Skip to content

Commit

Permalink
Update 8929: fix UI error if no host tags
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache committed May 2, 2024
1 parent 40aeea4 commit 614f655
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/views/infra/HostInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ export default {
this.fetchLoading = true
api('listHosts', { id: this.resource.id }).then(json => {
this.host = json.listhostsresponse.host[0]
const hosttags = this.host.hosttags.split(',') || []
const explicithosttags = this.host.explicithosttags.split(',') || []
const implicithosttags = this.host.implicithosttags.split(',') || []
const hosttags = this.host.hosttags?.split(',') || []
const explicithosttags = this.host.explicithosttags?.split(',') || []
const implicithosttags = this.host.implicithosttags?.split(',') || []
const allHostTags = []
for (const hosttag of hosttags) {
var isexplicit = false
Expand Down

0 comments on commit 614f655

Please sign in to comment.