From 5817daa4b3e5d54038a271b73a0c5d981858d0a6 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 31 May 2021 14:20:27 -0700 Subject: [PATCH] IO-1175 Allow for null vin. --- .../jobs-available-table/jobs-available-table.container.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/components/jobs-available-table/jobs-available-table.container.jsx b/client/src/components/jobs-available-table/jobs-available-table.container.jsx index 1f68838c3..a7b9198f6 100644 --- a/client/src/components/jobs-available-table/jobs-available-table.container.jsx +++ b/client/src/components/jobs-available-table/jobs-available-table.container.jsx @@ -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,