mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
fix calculation of access field placeholder on multiselections
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user