Skip to content

Commit

Permalink
NTR: catch null
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Jun 14, 2024
1 parent 2f62872 commit cb7b1e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,10 @@ Component.override('sw-order-line-items-grid', {
},
canceledQuantity(item){
const itemStatus = this.cancelStatus[item.id];
if(itemStatus === undefined){
if(itemStatus === undefined || itemStatus === null){
return '~';
}
return itemStatus.quantityCanceled
return itemStatus.quantityCanceled;
},
isCancelable(item){
const itemStatus = this.cancelStatus[item.id];
Expand Down

0 comments on commit cb7b1e7

Please sign in to comment.