From 21551e3df9b30b24f6c9b10e682f9d84493d1b66 Mon Sep 17 00:00:00 2001 From: Sergiy Dybskiy Date: Thu, 8 Dec 2016 15:27:01 -0500 Subject: [PATCH] Update index.js --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index a7798a75..1c245e92 100644 --- a/src/index.js +++ b/src/index.js @@ -152,7 +152,8 @@ export class Map extends React.Component { }); Object.keys(mapConfig).forEach((key) => { - if (!mapConfig[key]) { + // Allow to configure mapConfig with 'false' + if (mapConfig[key] == null) { delete mapConfig[key]; } });