mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-06 11:21:33 +00:00
Fix for empty array when querying for local community geometries
This commit is contained in:
@@ -112,7 +112,7 @@ export function uiSuccess(context) {
|
||||
|
||||
|
||||
// Gather community polygon IDs intersecting the map..
|
||||
var matchFeatures = data.community.query(context.map().center(), true);
|
||||
var matchFeatures = data.community.query(context.map().center(), true) || [];
|
||||
var matchIDs = matchFeatures.map(function(feature) { return feature.id; });
|
||||
|
||||
// Gather community resources that are either global or match a polygon.
|
||||
|
||||
Reference in New Issue
Block a user