diff --git a/canon.js b/canon.js index 6af87bd2b..e06ba7c8b 100644 --- a/canon.js +++ b/canon.js @@ -23,7 +23,7 @@ module.exports = { .map(d => d.id instanceof Array ? d.id : [d.id])); const poverty = cubes.find(cube => cube.name.includes("acs_ygpsar_poverty_by_gender_age_race")); - const bigGeos = poverty ? ids.every(g => g === "01000US") : ids.every(g => pops[g] && pops[g] >= 250000); + const bigGeos = poverty ? ids.every(g => g === "01000US") : ids.length ? ids.every(g => pops[g] && pops[g] >= 250000) : false; const tracts = query.dimensions.filter(d => (d.relation || "").includes("Tract")).length; return cubes.filter(cube => cube.name.match(bigGeos && !tracts ? /_1$/g : /_5$/g));