Don't remove source:* tags when downgrading features (close #8097)

This commit is contained in:
Quincy Morgan
2020-10-29 13:40:45 -04:00
parent 353e37ee70
commit 6b8cbbd12b
+4 -2
View File
@@ -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);