remove reference to VehiclesFromApi

This commit is contained in:
Katie Kroell 2023-08-07 10:50:41 -04:00
parent e992673f38
commit ac0d99ea33

View file

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