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
|
||||
this.mainStore.updateVehicle(vehicle.data);
|
||||
this.mainStore.updateVehicle(vehicle?.data);
|
||||
this.displayGeneric = true;
|
||||
|
||||
// get the style(s) associated with the selected YMM
|
||||
const styleOptions = await this.mainStore.getVehicleStyles(
|
||||
vehicle.data.year,
|
||||
vehicle.data.make,
|
||||
vehicle.data.model
|
||||
vehicle?.data.year,
|
||||
vehicle?.data.make,
|
||||
vehicle?.data.model
|
||||
)
|
||||
|
||||
// if there is more than 1 style for the selected vehicle, display generic/blurred image
|
||||
|
|
|
|||
Loading…
Reference in a new issue