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);