2815 - Fix ticket without state
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-04-07 13:39:36 +02:00
parent f5b95a0c4d
commit e40911e833
1 changed files with 5 additions and 2 deletions

View File

@ -27,9 +27,12 @@ class Controller extends Section {
}
get ticketState() {
if (!this.ticket) return null;
const ticket = this.ticket;
if (!ticket) return null;
return this.ticket.ticketState.state.code;
const ticketState = ticket.ticketState;
return ticketState && ticketState.state.code;
}
getSaleTotal(sale) {