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);
|
||||
return vehicle?.endorsements?.includes(endorsementOptions.REPAIR_WAIVED) ?? false;
|
||||
},
|
||||
VehiclesFromApi() {
|
||||
return useMainStore().pageData(issPageValues.POLICY_VEHICLES);
|
||||
},
|
||||
selectedVehicle() {
|
||||
const vehicle = this.mainStore.lookupVehicleByVin(this.selectedVehicleVin);
|
||||
return vehicle;
|
||||
|
|
@ -156,8 +153,8 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
if (this.VehiclesFromApi?.length === 1) {
|
||||
this.selectedVehicleVin = this.VehiclesFromApi[0].vin;
|
||||
if (this.policyVehicles?.length === 1) {
|
||||
this.selectedVehicleVin = this.policyVehicles[0].vin;
|
||||
}
|
||||
},
|
||||
methods:
|
||||
|
|
|
|||
Loading…
Reference in a new issue