From 5e6ed82d55fe86c49e92202082716692d3ec3995 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Thu, 27 Jun 2024 09:31:35 +0200 Subject: [PATCH] NTR: fix #766 (#769) Co-authored-by: Vitalij Mik --- .../sw-order/component/sw-order-line-items-grid/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Resources/app/administration/src/module/mollie-payments/extension/sw-order/component/sw-order-line-items-grid/index.js b/src/Resources/app/administration/src/module/mollie-payments/extension/sw-order/component/sw-order-line-items-grid/index.js index b25d5d101..f5c41291d 100644 --- a/src/Resources/app/administration/src/module/mollie-payments/extension/sw-order/component/sw-order-line-items-grid/index.js +++ b/src/Resources/app/administration/src/module/mollie-payments/extension/sw-order/component/sw-order-line-items-grid/index.js @@ -344,6 +344,10 @@ Component.override('sw-order-line-items-grid', { return itemShippingStatus.quantityShipped; }, canceledQuantity(item){ + + if(this.cancelStatus === undefined || this.cancelStatus === null){ + return '~'; + } const itemStatus = this.cancelStatus[item.id]; if(itemStatus === undefined || itemStatus === null){ return '~';