|
|
@@ -43,11 +43,13 @@ const SetVehiclesOne = () => {
|
|
|
const response = await chargeStationService.fetchCarBrand();
|
|
|
if (response) {
|
|
|
setProcessedCarData(response.data);
|
|
|
+ console.log(
|
|
|
'All brand names:',
|
|
|
response.data.map((brand) => brand.name)
|
|
|
);
|
|
|
}
|
|
|
} catch (error) {
|
|
|
+ console.log(error);
|
|
|
} finally {
|
|
|
setLoading(false);
|
|
|
}
|
|
|
@@ -56,6 +58,10 @@ const SetVehiclesOne = () => {
|
|
|
}, []);
|
|
|
|
|
|
useEffect(() => {
|
|
|
+ console.log('Zustand VehicleBrand', vehicleBrand);
|
|
|
+ console.log('Zustand BrandID', BrandID);
|
|
|
+ console.log('Zustand VehicleModel', vehicleModel);
|
|
|
+ console.log('Zustand ModelID', ModelID);
|
|
|
}, [processedCarData]);
|
|
|
|
|
|
const renderBrandItem = ({ item: brand }: { item: CarBrand }) => (
|