Skip to content

Commit 86bbddc

Browse files
authored
Merge pull request #52 from 416serg/patch-1
Update index.js
2 parents 206ac4b + 21551e3 commit 86bbddc

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)