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

This commit is contained in:
Tobias 2025-03-18 18:05:01 +01:00 committed by GitHub
parent d1f61a0f6f
commit 2ab613129a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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