From 860115e074bd134d632edd4556ace37e22e2dc3c Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Sat, 4 Jan 2025 02:12:17 +0200 Subject: [PATCH] fix js error --- components/location/LocationForm.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/location/LocationForm.js b/components/location/LocationForm.js index 885b4e8..df06282 100644 --- a/components/location/LocationForm.js +++ b/components/location/LocationForm.js @@ -38,8 +38,9 @@ export default function LocationForm() { useEffect(() => { const fetchUploadedImages = async () => { try { - const response = await axiosInstance.get('/uploaded-images'); - setUploadedImages(response.data.imageUrls); + // ToDo: we don't have this endpoint yet and we don't use the uploaded images collection + // const response = await axiosInstance.get('/uploaded-images'); + // setUploadedImages(response.data.imageUrls); } catch (error) { console.error('Error fetching uploaded images:', error); }