IO-2098 Fix vin search bug on job import.
This commit is contained in:
@@ -112,12 +112,12 @@ export function JobsAvailableContainer({
|
||||
).data;
|
||||
|
||||
let existingVehicles;
|
||||
if (estData.est_data.vehicle && estData.est_data.vin) {
|
||||
if (estData.est_data.v_vin) {
|
||||
//There's vehicle data, need to double check the VIN.
|
||||
existingVehicles = await client.query({
|
||||
query: SEARCH_VEHICLE_BY_VIN,
|
||||
variables: {
|
||||
vin: estData.est_data.vehicle.data.v_vin,
|
||||
vin: estData.est_data.v_vin || estData.est_data.vehicle.data.v_vin,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user