CASH-2025: add a null check on lineItems.glassParts before calling swapOEM...

This commit is contained in:
Adam Caouette 2026-01-12 10:40:18 -05:00
parent 42645e1760
commit e869c97bec

View file

@ -764,7 +764,7 @@ export default {
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);
if (
(this.isOemGlassSelected && !isOEMGlassOnOrder) ||