IO-1175 Allow for null vin.
This commit is contained in:
@@ -104,7 +104,10 @@ export function JobsAvailableContainer({ bodyshop, currentUser }) {
|
||||
).data;
|
||||
|
||||
let existingVehicles;
|
||||
if (estData.data.available_jobs_by_pk.est_data.vehicle) {
|
||||
if (
|
||||
estData.data.available_jobs_by_pk.est_data.vehicle &&
|
||||
estData.data.available_jobs_by_pk.est_data.vin
|
||||
) {
|
||||
//There's vehicle data, need to double check the VIN.
|
||||
existingVehicles = await client.query({
|
||||
query: SEARCH_VEHICLE_BY_VIN,
|
||||
|
||||
Reference in New Issue
Block a user