fix(report): Check ticket property first
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
9a1b90eec4
commit
8b60dbacfa
|
@ -27,7 +27,8 @@ module.exports = {
|
|||
|
||||
for (let sale of sales) {
|
||||
const ticket = map.get(sale.ticketFk);
|
||||
ticket.sales.push(sale);
|
||||
|
||||
if (ticket) ticket.sales.push(sale);
|
||||
}
|
||||
|
||||
this.tickets = tickets;
|
||||
|
|
Loading…
Reference in New Issue