From 6ef7d4653dbb9c3adac579c3d7731f9550429a28 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 24 Aug 2023 14:45:23 -0700 Subject: [PATCH] Resolve UNK mileage from CCC. --- .../jobs-available-table/jobs-available-table.container.jsx | 6 +++++- 1 file changed, 5 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 0a8241cd0..95b9d888b 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 @@ -6,7 +6,7 @@ import { useQuery, } from "@apollo/client"; import { useTreatments } from "@splitsoftware/splitio-react"; -import { Col, notification, Row } from "antd"; +import { Col, notification, Row, Typography } from "antd"; import Axios from "axios"; import moment from "moment"; import queryString from "query-string"; @@ -160,6 +160,10 @@ export function JobsAvailableContainer({ delete newJob.vehicle; } + if (typeof newJob.kmin === "string") { + newJob.kmin = null; + } + insertNewJob({ variables: { job: newJob,