From f1c4e291c387d5dbf5e259977c8873faedc94f5a Mon Sep 17 00:00:00 2001 From: Chris Redelinghuys Date: Mon, 12 Jan 2026 09:10:20 -0500 Subject: [PATCH] CASH-2025: Add null check --- src/layouts/quote/quote.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; + } } }); },