diff --git a/src/app/(sok)/_utils/elasticSearchRequestBody.ts b/src/app/(sok)/_utils/elasticSearchRequestBody.ts index 732cc272e..774670cf6 100644 --- a/src/app/(sok)/_utils/elasticSearchRequestBody.ts +++ b/src/app/(sok)/_utils/elasticSearchRequestBody.ts @@ -499,7 +499,7 @@ function filterNestedFacets( childKey: string, nestedField?: string, ) { - let allMusts: (TermFilter | BoolFilter)[] = []; + let allMusts: Array> = []; if (parents && parents.length > 0) { parents.forEach((parent) => { let must: (TermFilter | BoolFilter)[] = [ @@ -526,7 +526,7 @@ function filterNestedFacets( ]; } - allMusts = [...allMusts, ...must]; + allMusts = [...allMusts, must]; }); }