From 06950113ae9b9a717fa3a943cc1ea72120c7766d Mon Sep 17 00:00:00 2001 From: Sami Siren Date: Mon, 11 Sep 2017 21:36:19 +0300 Subject: [PATCH 1/2] add default value for loaded --- app/component/map/Map.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/component/map/Map.js b/app/component/map/Map.js index c34b9a945a..0e3c8e69f6 100644 --- a/app/component/map/Map.js +++ b/app/component/map/Map.js @@ -52,12 +52,13 @@ class Map extends React.Component { showStops: PropTypes.bool, zoom: PropTypes.number, showScaleBar: PropTypes.bool, - loaded: PropTypes.function, + loaded: PropTypes.func, disableZoom: PropTypes.bool, }; static defaultProps = { showScaleBar: false, + loaded: () => undefined, }; static contextTypes = { From 724c2ebc8732e6ff4fcdebe42739d3e603b9999a Mon Sep 17 00:00:00 2001 From: Sami Siren Date: Mon, 11 Sep 2017 21:37:56 +0300 Subject: [PATCH 2/2] shorter --- app/component/map/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/component/map/Map.js b/app/component/map/Map.js index 0e3c8e69f6..2c418c89c3 100644 --- a/app/component/map/Map.js +++ b/app/component/map/Map.js @@ -58,7 +58,7 @@ class Map extends React.Component { static defaultProps = { showScaleBar: false, - loaded: () => undefined, + loaded: () => {}, }; static contextTypes = {