Update src/layouts/policy-vehicles/policy-vehicles.vue

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
katiekroell 2026-03-10 13:17:14 -04:00 committed by GitHub
parent 5a27faba57
commit 67b18aef33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -188,7 +188,9 @@ export default {
const vehicleLookupResponse = await this.lookupVehicleByVin(this.selectedVehicleVin);
if (!vehicleLookupResponse?.data.canSafeliteService) {
this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(this.mainStore.order.vehicle.carId));
this.mainStore.setBailout(
bailoutMessage.HeavyTruckVehicle(vehicleLookupResponse?.data?.carId)
);
}
useMainStore().updateVehicle({
...vehicleLookupResponse.data,