From fd32f17958df108702400d40c6ccf182a66f349a Mon Sep 17 00:00:00 2001 From: Speros Kokenes Date: Wed, 13 Nov 2024 11:15:19 -0500 Subject: [PATCH] fix: render value null check --- .../malloy-render/src/component/render-result-metadata.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/malloy-render/src/component/render-result-metadata.ts b/packages/malloy-render/src/component/render-result-metadata.ts index d9fd439e3..1ccf098a9 100644 --- a/packages/malloy-render/src/component/render-result-metadata.ts +++ b/packages/malloy-render/src/component/render-result-metadata.ts @@ -165,7 +165,10 @@ const populateFieldMeta = (data: DataArray, metadata: RenderResultMetadata) => { const fieldSet = maxUniqueFieldValueSets.get(getFieldKey(f))!; const value = f.isAtomicField() ? row.cell(f).value : undefined; - if (value === null || typeof value === 'undefined') { + if ( + f.isAtomicField() && + (value === null || typeof value === 'undefined') + ) { fieldMeta.values.add(NULL_SYMBOL); fieldSet.add(NULL_SYMBOL); } else if (valueIsNumber(f, value)) {