Skip to content

Commit 21551e3

Browse files
author
Sergiy Dybskiy
authored
Update index.js
1 parent 206ac4b commit 21551e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ export class Map extends React.Component {
152152
});
153153

154154
Object.keys(mapConfig).forEach((key) => {
155-
if (!mapConfig[key]) {
155+
// Allow to configure mapConfig with 'false'
156+
if (mapConfig[key] == null) {
156157
delete mapConfig[key];
157158
}
158159
});

0 commit comments

Comments
 (0)