fix unhighlight in editor

This commit is contained in:
Laura Klünder 2024-12-14 12:51:50 +00:00
parent 4a37e63a2d
commit 2630a661b3

View file

@ -1238,7 +1238,6 @@ editor = {
// highlight a geometries layer and itemtable row if they both exist
var geometries = editor._highlight_geometries[id];
if (!geometries) return;
var option;
for (geometry of geometries) {
geometry.setStyle({
color: '#FFFFDD',
@ -1257,7 +1256,7 @@ editor = {
for (geometry of geometries) {
var hasOption, optionSelected;
if (editor.accessRestrictionSelect) {
var option = editor.accessRestrictionSelect.find('[value=' + String(feature.properties.access_restriction) + ']');
option = editor.accessRestrictionSelect.find('[value=' + String(geometry.highlightID) + ']');
hasOption = !!option.length;
optionSelected = option.is(':selected');
} else {