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 orderItemsArray = [];
const manuaGlassNamesArray = []; const manuaGlassNamesArray = [];
const glassInformation = this.order.damage.glassToReplace; const glassInformation = this.order.damage.glassToReplace;
glassInformation.forEach((glassPiece) => { glassInformation?.forEach((glassPiece) => {
const glassPieceObject = { const glassPieceObject = {
name: glassPiece.glassLocation.toUpperCase() name: glassPiece?.glassLocation?.toUpperCase()
}; };
orderItemsArray.push(glassPieceObject); orderItemsArray.push(glassPieceObject);
manuaGlassNamesArray.push(glassPiece.glassLocation); manuaGlassNamesArray.push(glassPiece.glassLocation);