From e74b06b35df05e725ece0312b4894d0a2c99baaa Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Wed, 9 Mar 2022 16:25:12 +0100 Subject: [PATCH] Apply kind filter when fetching tags Signed-off-by: Vincenzo Scamporlino --- .../src/components/EntityTagPicker/EntityTagPicker.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/catalog-react/src/components/EntityTagPicker/EntityTagPicker.tsx b/plugins/catalog-react/src/components/EntityTagPicker/EntityTagPicker.tsx index eafa10696c..ddb70c6d31 100644 --- a/plugins/catalog-react/src/components/EntityTagPicker/EntityTagPicker.tsx +++ b/plugins/catalog-react/src/components/EntityTagPicker/EntityTagPicker.tsx @@ -58,10 +58,11 @@ export const EntityTagPicker = () => { const facet = 'metadata.tags'; const { facets } = await catalogApi.getEntityFacets({ facets: [facet], + filter: filters.kind?.getCatalogFilters(), }); return facets[facet].map(({ value }) => value); - }, []); + }, [filters.kind]); const queryParamTags = useMemo( () => [queryParameters.tags].flat().filter(Boolean) as string[],