feat(views/geo): react to icon changes

This commit is contained in:
Elian Doran 2025-07-24 22:46:36 +03:00
parent 90accfcc48
commit 051fe67176
No known key found for this signature in database

View file

@ -290,7 +290,7 @@ export default class GeoView extends ViewMode<MapData> {
// If any of note has its location attribute changed.
// TODO: Should probably filter by parent here as well.
const attributeRows = loadResults.getAttributeRows();
if (attributeRows.find((at) => [LOCATION_ATTRIBUTE, "color"].includes(at.name ?? ""))) {
if (attributeRows.find((at) => [LOCATION_ATTRIBUTE, "color", "iconClass"].includes(at.name ?? ""))) {
this.#reloadMarkers();
}