CSR-2221 cart no showing because throwing an error when no supportingitems exist
This commit is contained in:
CarlNation 2024-09-10 15:41:59 -04:00
parent 2447f34a84
commit 34b7be4fd2

View file

@ -303,6 +303,8 @@ export default {
},
lineItemsWithoutRecal() {
if (!this.lineItems || this.lineItems.length < 1) return;
if (!this.lineItems.supportingItems) return this.lineItems;
const lineItemsCopy = deepClone(this.lineItems);
lineItemsCopy.supportingItems = baseMixin.methods.filterOutRecalibration(
lineItemsCopy.supportingItems