AntiEvictionBoston / Maps

Maps highlighting eviction and displacement in Boston, using leaflet.js and React.
GNU Affero General Public License v3.0
6 stars 0 forks source link

If there is no blank images prop in data/east_boston_stories.js... bad things happen #50

Closed heybenji closed 8 years ago

heybenji commented 8 years ago

This is probably a bug-ish thing @aliceriot.

Basically, if there's no line images: [], on each story, the map silently fails and you get a WSOD. It's weird because I see your component lets images = [] and checks for a non-zero length before pushing them. Nonetheless... it would be nice to be able to remove properties entirely that weren't relevant.

alicewriteswrongs commented 8 years ago

word that's a quick refactor

I think it's because I'm calling this.props.story.images.forEeach, so we should get a no method error b/c forEach isn't defined on undefined