Fix for empty state tests. Ensure null isnt scrubbed when enriched

This commit is contained in:
Dean 2024-05-09 11:29:43 +01:00
parent 4c6629d15f
commit b52d1921ec
1 changed files with 1 additions and 0 deletions

View File

@ -240,6 +240,7 @@ export async function enrichSearchContext(
// enrich the fields with dynamic parameters // enrich the fields with dynamic parameters
for (let key of Object.keys(fields)) { for (let key of Object.keys(fields)) {
if (fields[key] == null) { if (fields[key] == null) {
enrichedQuery[key] = null
continue continue
} }
if (typeof fields[key] === "object") { if (typeof fields[key] === "object") {