From d16ec53465aba9835ba0248df92ffc0ea8772c0e Mon Sep 17 00:00:00 2001 From: kontrollanten Date: Wed, 27 Feb 2019 22:10:42 +0100 Subject: [PATCH] fix(Map): prevent render null children --- src/Map.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Map.js b/src/Map.js index 4fcc62a..41742d3 100644 --- a/src/Map.js +++ b/src/Map.js @@ -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 } },