forked from MapComplete/MapComplete
Fix: don't save special items (such as "add new point") into history anymore
This commit is contained in:
parent
ec04afe4d1
commit
2f92fd0da1
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue