This marks the Antd upgrades, it is not in a stable state.

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2023-12-13 16:19:04 -05:00
parent 64f56d20dd
commit 25173b0903
28 changed files with 1715 additions and 955 deletions

View File

@@ -26,7 +26,7 @@ export function VehicleDetailContainer({
addRecentItem,
setSelectedHeader,
}) {
const { vehId } = useParams;
const { vehId } = useParams();
const { t } = useTranslation();
const { loading, data, error, refetch } = useQuery(QUERY_VEHICLE_BY_ID, {
@@ -85,8 +85,7 @@ export function VehicleDetailContainer({
if (loading) return <LoadingSpinner />;
if (error) return <AlertComponent message={error.message} type="error" />;
if (!!!data.vehicles_by_pk) return <NotFound />;
if (!data.vehicles_by_pk) return <NotFound />;
return (
<VehicleDetailComponent vehicle={data.vehicles_by_pk} refetch={refetch} />
);