From 82197c1215add76335eae006ec6b26eee8a7bfe2 Mon Sep 17 00:00:00 2001 From: victor barbier Date: Wed, 17 Jul 2024 17:22:15 +0200 Subject: [PATCH] fix(networks): integration elastic filter --- client/src/pages/search/hooks/useUrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/search/hooks/useUrl.ts b/client/src/pages/search/hooks/useUrl.ts index 2f773747..8db0cf1e 100644 --- a/client/src/pages/search/hooks/useUrl.ts +++ b/client/src/pages/search/hooks/useUrl.ts @@ -99,7 +99,7 @@ export default function useUrl() { const currentQuery = searchParams.get("q") || ""; const currentFilters = parseSearchFiltersFromURL(searchParams.get("filters")); const filters = filtersToElasticQuery(currentFilters); - if (integrationId) filters.push({ term: { bso_local_affiliations: integrationId } }); + if (integrationId) filters.push({ term: { "bso_local_affiliations.keyword": integrationId } }) const clearFilters = useCallback(() => { searchParams.delete("filters");