diff --git a/src/layouts/vehicle/vehicle.vue b/src/layouts/vehicle/vehicle.vue index c8c404b47..7d9b7dffa 100644 --- a/src/layouts/vehicle/vehicle.vue +++ b/src/layouts/vehicle/vehicle.vue @@ -251,14 +251,9 @@ export default { if (make) { const result = await this.getModelOptions(this.selectedYear, make); this.modelOptions = result?.data; - if ( - this.selectedMakefromStore() === make || - this.selectedMakefromStore() !== make - ) { - if (this.modelOptions.length === 1) this.selectedModel = this.modelOptions[0]; - else this.selectedModel = null; - this.selectedStyle = null; - } + if (this.modelOptions.length === 1) this.selectedModel = this.modelOptions[0]; + else this.selectedModel = null; + this.selectedStyle = null; } else { this.modelOptions = []; this.selectedModel = null; @@ -273,13 +268,8 @@ export default { model ); this.styleOptions = result?.data; - if ( - this.selectedModelfromStore() !== model || - this.selectedModelfromStore() === model - ) { - if (this.styleOptions.length === 1) this.selectedStyle = this.styleOptions[0]; - else this.selectedStyle = null; - } + if (this.styleOptions.length === 1) this.selectedStyle = this.styleOptions[0]; + else this.selectedStyle = null; } else { this.styleOptions = []; this.selectedStyle = null;