prevented an error if resultant length is 0
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
4f8e319b89
commit
6e67dd408e
|
@ -82,7 +82,10 @@ class Controller extends Section {
|
|||
if (!this.ticket) return;
|
||||
|
||||
this.$http.get(`Tickets/${this.ticket.id}/getVolume`)
|
||||
.then(res => this.ticketVolume = res.data[0].volume);
|
||||
.then(res => {
|
||||
if (res.data.length)
|
||||
this.ticketVolume = res.data[0].volume;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue