more robust backfilling of current weather properties close #177
This commit is contained in:
parent
37193112a7
commit
69d2b0f40b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue