diff --git a/src/client/components/vehicleTypes.tsx b/src/client/components/vehicleTypes.tsx index 883669d711a6256ab270ddb171b74cfddb08ec2f..ff92af9cdb920b67e7599a66e2530acb4478596c 100644 --- a/src/client/components/vehicleTypes.tsx +++ b/src/client/components/vehicleTypes.tsx @@ -25,7 +25,8 @@ function VehicleTypes() { }, }) .then((response) => response.json()) - .then((data) => setVehicleTypes(data)); + .then((data) => setVehicleTypes(data)) + .catch((e) => console.log("Error while loading vehicle type\n:", e)); }; const addType = (type: any) => { fetch("/api/vehicleType", {