From 6b8cbbd12b9f0d9a6a12cc43f0c36cc5e7de7d90 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Thu, 29 Oct 2020 13:40:45 -0400 Subject: [PATCH] Don't remove `source:*` tags when downgrading features (close #8097) --- modules/operations/downgrade.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/operations/downgrade.js b/modules/operations/downgrade.js index a37ee0927..7177cf9af 100644 --- a/modules/operations/downgrade.js +++ b/modules/operations/downgrade.js @@ -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);