handle nulls

This commit is contained in:
Katie Kroell 2023-06-30 14:41:24 -04:00
parent e473f74737
commit 33a617ea25

View file

@ -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