Remove existing NSI keys before upgrading to a NSI preset

(closes #6575)
This commit is contained in:
Bryan Housel
2019-06-30 01:24:42 -04:00
parent 618587aa48
commit 2307125842
+1
View File
@@ -102,6 +102,7 @@ export function validationOutdatedTags(context) {
var brand = brands.brands[match.kvnd];
if (brand && brand.tags['brand:wikidata']) {
subtype = 'noncanonical_brand';
nsiKeys.forEach(function(remove) { delete newTags[remove]; });
Object.assign(newTags, brand.tags);
break;
}