From cb7b1e7d154697fb6d169a7a01c3be6b5172d007 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Fri, 14 Jun 2024 15:35:26 +0200 Subject: [PATCH] NTR: catch null --- .../sw-order/component/sw-order-line-items-grid/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 501e4cf1e..102dc0cd3 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 @@ -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];