diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index abf68247c..8d86c16af 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -939,9 +939,12 @@ export default { const windshieldString = "WINDSHIELD"; this.lineItems.glassParts.forEach((part, index) => { if (part.partType === windshieldString) { - this.lineItems.glassParts[index] = this.alternateGlassPartsForOem.find( + let altPartToUse = this.alternateGlassPartsForOem.find( (altPart) => altPart.partType === windshieldString ); + if (altPartToUse) { + this.lineItems.glassParts[index] = altPartToUse; + } } }); },