enter image description here enter image description here
please describe me the problem and how can i solve this as i am beginner in the react.
Try adding a null check whenever you are calling map function.
filteredRestaurant?.map(x => <RestaurantCard />)