Fix: don't save special items (such as "add new point") into history anymore

This commit is contained in:
Pieter Vander Vennet 2025-04-01 03:07:00 +02:00
parent ec04afe4d1
commit 2f92fd0da1

View file

@ -40,6 +40,9 @@ export class WithSelectedElementState extends UserMapFeatureswitchState {
const [osm_type, osm_id] = selected.properties.id.split("/")
const [lon, lat] = GeoOperations.centerpointCoordinates(selected)
const layer = this.theme.getMatchingLayer(selected.properties)
if (!layer.isNormal()) {
return
}
const nameOptions = [
selected?.properties?.name,