From 9d31d444d0b346b9b9ddb2c2192358a2db844e32 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Tue, 4 Feb 2020 12:09:54 -0500 Subject: [PATCH] Show only issues shared by all features on multiselection --- modules/core/validator.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/core/validator.js b/modules/core/validator.js index e07d77eda..e1c5f1dc9 100644 --- a/modules/core/validator.js +++ b/modules/core/validator.js @@ -195,11 +195,14 @@ export function coreValidator(context) { var entityIssueIDs = cache.issuesByEntityID[entityID]; if (!entityIssueIDs) { return acc; - } else { - return new Set([...acc, ...entityIssueIDs]); } - }, new Set()); - + if (!acc) { + return new Set(entityIssueIDs); + } + return new Set([...acc].filter(function(elem) { + return entityIssueIDs.has(elem); + })); + }, null) || []; var opts = options || {};