fix(report): Check ticket property first
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-02-16 09:53:38 +01:00
parent 9a1b90eec4
commit 8b60dbacfa
1 changed files with 2 additions and 1 deletions

View File

@ -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;