marker.ts: undefined instead of null (#2500)

This commit is contained in:
Tobias 2025-03-18 18:05:01 +01:00 committed by Xiaoji Chen
parent dfc9a572d7
commit d6d5f6ac05

View File

@ -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);