Skip to content

Commit 6d20398

Browse files
committed
Håndterer tom categorykeys liste ved søk
1 parent 9c173a9 commit 6d20398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/opensearch/queries/contentSearch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const buildContentSearchParams = (
106106
}
107107
}
108108

109-
if (categoryKeys) {
109+
if (categoryKeys && categoryKeys.length > 0) {
110110
const categoryKeysFinal = [...categoryKeys];
111111

112112
if (withChildCategories) {

0 commit comments

Comments
 (0)