CASH-2025: add a null check on lineItems.glassParts before calling swapOEM...
This commit is contained in:
parent
42645e1760
commit
e869c97bec
1 changed files with 1 additions and 1 deletions
|
|
@ -764,7 +764,7 @@ export default {
|
||||||
this.lineItems.supportingItems = this.filterOutFees(this.lineItems.supportingItems);
|
this.lineItems.supportingItems = this.filterOutFees(this.lineItems.supportingItems);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.alternateGlassPartsForOem && this.alternateGlassPartsForOem.length > 0) {
|
if (this.lineItems.glassParts && this.alternateGlassPartsForOem && this.alternateGlassPartsForOem.length > 0) {
|
||||||
let isOEMGlassOnOrder = this.isOEMGlassOnOrder(this.lineItems.glassParts);
|
let isOEMGlassOnOrder = this.isOEMGlassOnOrder(this.lineItems.glassParts);
|
||||||
if (
|
if (
|
||||||
(this.isOemGlassSelected && !isOEMGlassOnOrder) ||
|
(this.isOemGlassSelected && !isOEMGlassOnOrder) ||
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue