mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 08:17:30 +02:00
Fix issue with searching features with a deleted feature in history
This commit is contained in:
@@ -149,8 +149,11 @@ export function uiFeatureList(context) {
|
||||
var localResults = [];
|
||||
for (var id in allEntities) {
|
||||
var entity = allEntities[id];
|
||||
if (!entity) continue;
|
||||
|
||||
var name = utilDisplayName(entity) || '';
|
||||
if (name.toLowerCase().indexOf(q) < 0) continue;
|
||||
|
||||
var matched = context.presets().match(entity, graph);
|
||||
var type = (matched && matched.name()) || utilDisplayType(entity.id);
|
||||
var extent = entity.extent(graph);
|
||||
|
||||
Reference in New Issue
Block a user