Closed jazer313 closed 2 years ago
Getting the error below, any suggestions to fix it?
Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'filter') (anonymous function) src/App.js:45 ` getPlacesData(type, bounds.sw, bounds.ne) .then((data) => { setPlaces(data.filter((place) => place.name && place.num_reviews > 0)); setFilteredPlaces([]); setRating(''); setIsLoading(false);
Getting the error below, any suggestions to fix it?
Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'filter') (anonymous function) src/App.js:45 ` getPlacesData(type, bounds.sw, bounds.ne) .then((data) => { setPlaces(data.filter((place) => place.name && place.num_reviews > 0)); setFilteredPlaces([]); setRating(''); setIsLoading(false);