Fix global community resources (e.g. Reddit)

This commit is contained in:
Bryan Housel
2018-04-07 22:16:50 -04:00
parent 1c440f0db4
commit 4eaa2a98ce

View File

@@ -100,7 +100,7 @@ export function uiSuccess(context) {
// Gather community resources that are either global or match a polygon.
var matchResources = _filter(data.community.resources, function(v) {
return v.featureId === null || matchIDs.indexOf(v.featureId) !== -1;
return !v.featureId || matchIDs.indexOf(v.featureId) !== -1;
});
if (matchResources.length) {