From eaa96ce0ae2e6a646235314d91f10fc7708ad423 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 16 Apr 2018 15:40:41 -0400 Subject: [PATCH] Fix for empty array when querying for local community geometries --- modules/ui/success.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/success.js b/modules/ui/success.js index b819571003..1fdfb67f56 100644 --- a/modules/ui/success.js +++ b/modules/ui/success.js @@ -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.