Fix crash by removing unused 'layer'

This commit is contained in:
Pieter Vander Vennet 2024-08-24 12:15:20 +02:00
parent 8959f72e92
commit 69f7c18ffd

View file

@ -104,15 +104,11 @@ export default class ThemeViewStateHashActor {
if (found.properties.id === "last_click") {
return true
}
const layer = this._state.layout.getMatchingLayer(found.properties)
console.log(
"Setting selected element based on hash",
hash,
"; found",
found,
"got matching layer",
layer.id,
""
found
)
selectedElement.setData(found)
return true