From f0fe025c554888380d01eb07c9d3454bb101f73c Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Wed, 26 Feb 2020 18:49:03 -0800 Subject: [PATCH] Ensure unshared issues aren't displayed during multiselection even if just one of the features has issues --- modules/core/validator.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/core/validator.js b/modules/core/validator.js index e1c5f1dc9..76e8b3a91 100644 --- a/modules/core/validator.js +++ b/modules/core/validator.js @@ -192,10 +192,7 @@ export function coreValidator(context) { // gather the issues that are common to all the entities var issueIDs = entityIDs.reduce(function(acc, entityID) { - var entityIssueIDs = cache.issuesByEntityID[entityID]; - if (!entityIssueIDs) { - return acc; - } + var entityIssueIDs = cache.issuesByEntityID[entityID] || new Set(); if (!acc) { return new Set(entityIssueIDs); }