make nullable
This commit is contained in:
parent
69a746d717
commit
b7924b9ebc
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue