From bebd7db2145d4ec07a224e9299f93bb8dcdfc16c Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Fri, 9 Oct 2020 10:24:53 -0400 Subject: [PATCH] Fix potential JavaScript error --- modules/actions/upgrade_tags.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/actions/upgrade_tags.js b/modules/actions/upgrade_tags.js index 6dc13cc73..9760f53df 100644 --- a/modules/actions/upgrade_tags.js +++ b/modules/actions/upgrade_tags.js @@ -7,6 +7,7 @@ export function actionUpgradeTags(entityId, oldTags, replaceTags) { var semiIndex; for (var oldTagKey in oldTags) { + if (!(oldTagKey in tags)) continue; // wildcard match if (oldTags[oldTagKey] === '*') { // note the value since we might need to transfer it