fix calculation of access field placeholder on multiselections

This commit is contained in:
Martin Raifer
2022-10-10 13:28:00 +02:00
parent 70e92f24e3
commit 771ad4dbd9
4 changed files with 68 additions and 35 deletions
+3
View File
@@ -298,6 +298,7 @@ export function utilCombinedTags(entityIDs, graph) {
var tags = {};
var tagCounts = {};
var allKeys = new Set();
var allTags = [];
var entities = entityIDs.map(function(entityID) {
return graph.hasEntity(entityID);
@@ -312,6 +313,7 @@ export function utilCombinedTags(entityIDs, graph) {
});
entities.forEach(function(entity) {
allTags.push(entity.tags);
allKeys.forEach(function(key) {
@@ -358,6 +360,7 @@ export function utilCombinedTags(entityIDs, graph) {
});
}
tags = Object.defineProperty(tags, Symbol.for('allTags'), { enumerable: false, value: allTags });
return tags;
}