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
f4c9b98dae
commit
12545f9c84
@ -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