diff --git a/server/scripts/modules/spc-outlook.mjs b/server/scripts/modules/spc-outlook.mjs index d56cf42..94ef41b 100644 --- a/server/scripts/modules/spc-outlook.mjs +++ b/server/scripts/modules/spc-outlook.mjs @@ -18,6 +18,8 @@ const testAllPoints = (point, data) => { data.forEach((day, index) => { // initialize the result result[index] = false; + // if there's no data (file didn't load), exit early + if (day === undefined) return; // loop through each category day.features.forEach((feature) => { if (!feature.geometry.coordinates) return;