From b52d1921ecaaf70be1fbbdc150f77d66a8fe983c Mon Sep 17 00:00:00 2001 From: Dean Date: Thu, 9 May 2024 11:29:43 +0100 Subject: [PATCH] Fix for empty state tests. Ensure null isnt scrubbed when enriched --- packages/server/src/api/controllers/row/utils/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/src/api/controllers/row/utils/utils.ts b/packages/server/src/api/controllers/row/utils/utils.ts index 1b847a1371..c2d62e0204 100644 --- a/packages/server/src/api/controllers/row/utils/utils.ts +++ b/packages/server/src/api/controllers/row/utils/utils.ts @@ -240,6 +240,7 @@ export async function enrichSearchContext( // enrich the fields with dynamic parameters for (let key of Object.keys(fields)) { if (fields[key] == null) { + enrichedQuery[key] = null continue } if (typeof fields[key] === "object") {