This commit is contained in:
Katie Kroell 2023-06-08 10:53:02 -04:00
parent 042a732d04
commit e85852bd45

View file

@ -168,6 +168,7 @@ export default {
// get vehicle details from selected vin
const vehicle = await this.lookupVehicleByVin(value);
// handle error in case vehicle info doesn't come back for selected VIN
if (vehicle.error) {
this.mainStore.resetVehicleState();
this.displayGeneric = true;
@ -184,7 +185,7 @@ export default {
)
// if there is more than 1 style for the selected vehicle, display generic/blurred image
if (styleOptions.data.length > 1) {
if (styleOptions?.data?.length > 1) {
this.displayGeneric = true;
}
else {