mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Don't remove source:* tags when downgrading features (close #8097)
This commit is contained in:
@@ -81,8 +81,10 @@ export function operationDowngrade(context, selectedIDs) {
|
||||
key.match(/^building:.{1,}/) ||
|
||||
key.match(/^roof:.{1,}/)) continue;
|
||||
}
|
||||
if (type !== 'generic' && key.match(/^addr:.{1,}/)) continue;
|
||||
|
||||
if (type !== 'generic') {
|
||||
if (key.match(/^addr:.{1,}/) ||
|
||||
key.match(/^source:.{1,}/)) continue;
|
||||
}
|
||||
delete tags[key];
|
||||
}
|
||||
graph = actionChangeTags(entityID, tags)(graph);
|
||||
|
||||
Reference in New Issue
Block a user