diff --git a/app/lib/indexer.ts b/app/lib/indexer.ts index 645c3078297430191cb9c11d0dcc33cc60e4a413..96fd89a6076dcf4af1713c7fb87e6c5a38c0567b 100644 --- a/app/lib/indexer.ts +++ b/app/lib/indexer.ts @@ -1970,6 +1970,9 @@ function reduce<T>(records: T[]): T { for (const k of keys) { if (record[k] !== undefined && record[k] !== null) { obj[k] = record[k]; + } else if (record[k] === null && obj[k] === undefined) { + // null overrides undefined + (obj[k] as any) = null } } return obj