Fix issue with searching features with a deleted feature in history

This commit is contained in:
Quincy Morgan
2020-01-06 13:44:41 -05:00
parent b40db6994b
commit 5468b66eda
+3
View File
@@ -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);