mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
fix problem
This commit is contained in:
parent
2933880de2
commit
b849e48c3e
@ -196,7 +196,7 @@ export const Layer = ({
|
||||
if (window.location.pathname.split('/')[1]) {
|
||||
const id = window.location.pathname.split('/')[1]
|
||||
const ref = leafletRefs[id]
|
||||
if (ref.marker && ref.item.layer?.name === name) {
|
||||
if (ref?.marker && ref.item.layer?.name === name) {
|
||||
ref.marker &&
|
||||
clusterRef.hasLayer(ref.marker) &&
|
||||
clusterRef?.zoomToShowLayer(ref.marker, () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user