Fix for empty array when querying for local community geometries

This commit is contained in:
Bryan Housel
2018-04-16 15:40:41 -04:00
parent f5c154f372
commit eaa96ce0ae

View File

@@ -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.