Fix for empty state tests. Ensure null isnt scrubbed when enriched
This commit is contained in:
parent
4c6629d15f
commit
b52d1921ec
|
@ -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") {
|
||||||
|
|
Loading…
Reference in New Issue