From 97ddf125d2c342eb4808a9252c8f55228e40941c Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 6 Aug 2021 17:14:32 -0400 Subject: [PATCH] Adjust wording of "Tag as not the same thing" --- data/core.yaml | 2 +- modules/validations/outdated_tags.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data/core.yaml b/data/core.yaml index ea6539673..2eae59862 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -1942,7 +1942,7 @@ en: title: Tag as disconnected annotation: Tagged very close features as disconnected. tag_as_not: - title: "Tag as not: {name}" + title: "Tag as not the same \"{name}\"" annotation: "Added not: tag" tag_as_unsquare: title: Tag as physically unsquare diff --git a/modules/validations/outdated_tags.js b/modules/validations/outdated_tags.js index b8b4e8eef..72d78a28b 100644 --- a/modules/validations/outdated_tags.js +++ b/modules/validations/outdated_tags.js @@ -118,10 +118,11 @@ export function validationOutdatedTags() { }) ]; - if (nsiResult && nsiResult.matched) { + const item = nsiResult && nsiResult.matched; + if (item) { fixes.push( new validationIssueFix({ - title: t.html('issues.fix.tag_as_not.title', { name: nsiResult.matched.displayName }), + title: t.html('issues.fix.tag_as_not.title', { name: item.displayName }), onClick: (context) => { context.perform(addNotTag, t('issues.fix.tag_as_not.annotation')); }