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") { 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