From 3288d619589905ea24786d1e8be6fb8ad3b380ef Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Thu, 27 Jun 2024 08:10:09 +0200 Subject: [PATCH] NTR: fix #766 --- .../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 '~';