forked from MapComplete/MapComplete
Fix crash by removing unused 'layer'
This commit is contained in:
parent
8959f72e92
commit
69f7c18ffd
1 changed files with 1 additions and 5 deletions
|
@ -104,15 +104,11 @@ export default class ThemeViewStateHashActor {
|
||||||
if (found.properties.id === "last_click") {
|
if (found.properties.id === "last_click") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
const layer = this._state.layout.getMatchingLayer(found.properties)
|
|
||||||
console.log(
|
console.log(
|
||||||
"Setting selected element based on hash",
|
"Setting selected element based on hash",
|
||||||
hash,
|
hash,
|
||||||
"; found",
|
"; found",
|
||||||
found,
|
found
|
||||||
"got matching layer",
|
|
||||||
layer.id,
|
|
||||||
""
|
|
||||||
)
|
)
|
||||||
selectedElement.setData(found)
|
selectedElement.setData(found)
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue