From b7924b9ebc93fd3a291a9caf0e56e3c45175fef8 Mon Sep 17 00:00:00 2001 From: Katie Kroell Date: Thu, 2 Nov 2023 13:30:34 -0400 Subject: [PATCH] make nullable --- src/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index f0fba796..069f8cc2 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -530,9 +530,9 @@ export const useMainStore = defineStore({ const orderItemsArray = []; const manuaGlassNamesArray = []; const glassInformation = this.order.damage.glassToReplace; - glassInformation.forEach((glassPiece) => { + glassInformation?.forEach((glassPiece) => { const glassPieceObject = { - name: glassPiece.glassLocation.toUpperCase() + name: glassPiece?.glassLocation?.toUpperCase() }; orderItemsArray.push(glassPieceObject); manuaGlassNamesArray.push(glassPiece.glassLocation);