remove reference to VehiclesFromApi
This commit is contained in:
parent
e992673f38
commit
ac0d99ea33
1 changed files with 2 additions and 5 deletions
|
|
@ -123,9 +123,6 @@ export default {
|
||||||
policyVehicle.vin === this.selectedVehicleVin);
|
policyVehicle.vin === this.selectedVehicleVin);
|
||||||
return vehicle?.endorsements?.includes(endorsementOptions.REPAIR_WAIVED) ?? false;
|
return vehicle?.endorsements?.includes(endorsementOptions.REPAIR_WAIVED) ?? false;
|
||||||
},
|
},
|
||||||
VehiclesFromApi() {
|
|
||||||
return useMainStore().pageData(issPageValues.POLICY_VEHICLES);
|
|
||||||
},
|
|
||||||
selectedVehicle() {
|
selectedVehicle() {
|
||||||
const vehicle = this.mainStore.lookupVehicleByVin(this.selectedVehicleVin);
|
const vehicle = this.mainStore.lookupVehicleByVin(this.selectedVehicleVin);
|
||||||
return vehicle;
|
return vehicle;
|
||||||
|
|
@ -156,8 +153,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.VehiclesFromApi?.length === 1) {
|
if (this.policyVehicles?.length === 1) {
|
||||||
this.selectedVehicleVin = this.VehiclesFromApi[0].vin;
|
this.selectedVehicleVin = this.policyVehicles[0].vin;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:
|
methods:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue