final refactor
This commit is contained in:
parent
3485373a4c
commit
b767f162ba
1 changed files with 3 additions and 2 deletions
|
|
@ -196,12 +196,13 @@ export default {
|
||||||
if (vehicle?.error === true) {
|
if (vehicle?.error === true) {
|
||||||
this.mainStore.resetVehicleState();
|
this.mainStore.resetVehicleState();
|
||||||
this.displayGeneric = true;
|
this.displayGeneric = true;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (vehicle) {
|
if (vehicle) {
|
||||||
// save selected vehicle to the store
|
// save selected vehicle to the store
|
||||||
this.mainStore.updateVehicle(vehicle);
|
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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue