Show only issues shared by all features on multiselection

This commit is contained in:
Quincy Morgan
2020-02-04 12:09:54 -05:00
parent 7dce4409ee
commit 9d31d444d0
+7 -4
View File
@@ -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 || {};