forked from MapComplete/MapComplete
Fix: fix loading notes based on hash
This commit is contained in:
parent
b22dcd58c5
commit
cde7bf6d9a
2 changed files with 5 additions and 2 deletions
|
|
@ -41,7 +41,10 @@ export class WithSelectedElementState extends UserMapFeatureswitchState {
|
|||
const [osm_type, osm_id] = selected.properties.id.split("/")
|
||||
const [lon, lat] = GeoOperations.centerpointCoordinates(selected)
|
||||
const layer = this.theme.getMatchingLayer(selected.properties)
|
||||
if (!layer.isNormal()) {
|
||||
if (!layer) {
|
||||
return
|
||||
}
|
||||
if (!layer?.isNormal()) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue