Merge pull request '2815 - Fix ticket without state' (#598) from 2815-ticket_without_state into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #598 Reviewed-by: Carlos Jimenez Ruiz <carlosjr@verdnatura.es>
This commit is contained in:
commit
c846b6a170
|
@ -27,9 +27,12 @@ class Controller extends Section {
|
||||||
}
|
}
|
||||||
|
|
||||||
get ticketState() {
|
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) {
|
getSaleTotal(sale) {
|
||||||
|
|
Loading…
Reference in New Issue