Skip to content

Commit

Permalink
Merge pull request #867 from navikt/bugfix/filtrering_paa_yrkeskatego…
Browse files Browse the repository at this point in the history
…ri_fungerer_ikke

Filtrering på yrkeskategori fungerer ikke
  • Loading branch information
St3ff1 authored Nov 22, 2024
2 parents c83e7d1 + 8e3ea62 commit 95313b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/(sok)/_utils/elasticSearchRequestBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ function filterNestedFacets(
childKey: string,
nestedField?: string,
) {
let allMusts: (TermFilter | BoolFilter)[] = [];
let allMusts: Array<Array<TermFilter | BoolFilter>> = [];
if (parents && parents.length > 0) {
parents.forEach((parent) => {
let must: (TermFilter | BoolFilter)[] = [
Expand All @@ -526,7 +526,7 @@ function filterNestedFacets(
];
}

allMusts = [...allMusts, ...must];
allMusts = [...allMusts, must];
});
}

Expand Down

0 comments on commit 95313b3

Please sign in to comment.