handle nulls
This commit is contained in:
parent
e473f74737
commit
33a617ea25
1 changed files with 4 additions and 4 deletions
|
|
@ -200,14 +200,14 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
// save selected vehicle to the store
|
// save selected vehicle to the store
|
||||||
this.mainStore.updateVehicle(vehicle.data);
|
this.mainStore.updateVehicle(vehicle?.data);
|
||||||
this.displayGeneric = true;
|
this.displayGeneric = true;
|
||||||
|
|
||||||
// get the style(s) associated with the selected YMM
|
// get the style(s) associated with the selected YMM
|
||||||
const styleOptions = await this.mainStore.getVehicleStyles(
|
const styleOptions = await this.mainStore.getVehicleStyles(
|
||||||
vehicle.data.year,
|
vehicle?.data.year,
|
||||||
vehicle.data.make,
|
vehicle?.data.make,
|
||||||
vehicle.data.model
|
vehicle?.data.model
|
||||||
)
|
)
|
||||||
|
|
||||||
// if there is more than 1 style for the selected vehicle, display generic/blurred image
|
// if there is more than 1 style for the selected vehicle, display generic/blurred image
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue