updates
This commit is contained in:
parent
042a732d04
commit
e85852bd45
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue