Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
fix(Map): prevent render null children
Browse files Browse the repository at this point in the history
  • Loading branch information
kontrollanten committed Feb 28, 2019
1 parent 9ecc55f commit d16ec53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class Map extends Component {

render() {
const children = this.props.children
.filter(c => c)
.map(child => Object.assign(
child,
{ attributes: { ...child.attributes, leafletMap: this.state.map } },
Expand Down

0 comments on commit d16ec53

Please sign in to comment.