hackoregon / civic

The frontend monorepo for the CIVIC platform.
http://civicplatform.org
MIT License
60 stars 26 forks source link

Fix getWeight default prop #1117

Closed mendozaline closed 4 years ago

mendozaline commented 4 years ago

The ScreenGridMap story throws the following error:

deck: error while initializing ScreenGridLayer({id: 'screengrid-layer'})
 TypeError: "this.props.getWeight is not a function"

This fixes that by setting changing the default value for getWeight to () => 1.