Skip to content

Commit 2ab6131

Browse files
authored
marker.ts: undefined instead of null (#2500)
1 parent d1f61a0 commit 2ab6131

File tree

1 file changed

+1
-1
lines changed
  • modules/react-maplibre/src/components

1 file changed

+1
-1
lines changed

modules/react-maplibre/src/components/marker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const Marker = memo(
4343
});
4444
const options = {
4545
...props,
46-
element: hasChildren ? document.createElement('div') : null
46+
element: hasChildren ? document.createElement('div') : undefined
4747
};
4848

4949
const mk = new mapLib.Marker(options);

0 commit comments

Comments
 (0)