Added vehicle detail form.
This commit is contained in:
@@ -17,10 +17,10 @@ export default function VehicleDetailContainer({ match }) {
|
||||
if (loading) return <LoadingSpinner />;
|
||||
if (error) return <AlertComponent message={error.message} type="error" />;
|
||||
|
||||
console.log("vehId", vehId);
|
||||
|
||||
if (data.vehicles[0])
|
||||
return <VehicleDetailComponent vehicle={data.vehicles[0]} />;
|
||||
return (
|
||||
<VehicleDetailComponent vehicle={data.vehicles[0]} refetch={refetch} />
|
||||
);
|
||||
else
|
||||
return (
|
||||
<AlertComponent message={t("vehicles.errors.noaccess")} type="error" />
|
||||
|
||||
Reference in New Issue
Block a user