From 69d2b0f40b892717425c581f8df13a643556998d Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Mon, 16 Feb 2026 20:40:13 -0600 Subject: [PATCH] more robust backfilling of current weather properties close #177 --- server/scripts/modules/currentweather.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/scripts/modules/currentweather.mjs b/server/scripts/modules/currentweather.mjs index 42812ab..53fbd5a 100644 --- a/server/scripts/modules/currentweather.mjs +++ b/server/scripts/modules/currentweather.mjs @@ -324,7 +324,7 @@ const backfill = (data) => { // backfill each property Object.keys(sortedData[0].properties).forEach((key) => { // qualify the key (must have value) - if (Object.hasOwn(sortedData[0].properties[key], 'value')) { + if (Object.hasOwn(sortedData[0].properties?.[key] ?? {}, 'value')) { // backfill this property result[key] = backfillProperty(sortedData, key); } else {