mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Show only issues shared by all features on multiselection
This commit is contained in:
@@ -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 || {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user