mirror of
https://github.com/visgl/react-map-gl.git
synced 2025-12-08 20:16:02 +00:00
marker.ts: undefined instead of null (#2500)
This commit is contained in:
parent
d1f61a0f6f
commit
2ab613129a
@ -43,7 +43,7 @@ export const Marker = memo(
|
||||
});
|
||||
const options = {
|
||||
...props,
|
||||
element: hasChildren ? document.createElement('div') : null
|
||||
element: hasChildren ? document.createElement('div') : undefined
|
||||
};
|
||||
|
||||
const mk = new mapLib.Marker(options);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user