mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-02-01 16:46:24 +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 = {
|
const options = {
|
||||||
...props,
|
...props,
|
||||||
element: hasChildren ? document.createElement('div') : null
|
element: hasChildren ? document.createElement('div') : undefined
|
||||||
};
|
};
|
||||||
|
|
||||||
const mk = new mapLib.Marker(options);
|
const mk = new mapLib.Marker(options);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user