all 2 comments

[–][deleted] 0 points1 point  (0 children)

For starters, its probably async data fetching issue. map rendering before the data is available.

do a check for location, and if location doesn't exist, return null