make nullable

This commit is contained in:
Katie Kroell 2023-11-02 13:30:34 -04:00
parent 69a746d717
commit b7924b9ebc

View file

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