diff --git a/client/package.json b/client/package.json index b9b0221..6e40ccf 100644 --- a/client/package.json +++ b/client/package.json @@ -6,8 +6,8 @@ "dependencies": { "@babel/eslint-parser": "^7.21.3", "@babel/runtime": "^7.22.3", - "@performant-software/semantic-components": "^2.2.17", - "@performant-software/shared-components": "^2.2.17", + "@performant-software/semantic-components": "^2.2.18", + "@performant-software/shared-components": "^2.2.18", "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", diff --git a/client/src/components/SearchFacets.js b/client/src/components/SearchFacets.js index 68c7054..3036037 100644 --- a/client/src/components/SearchFacets.js +++ b/client/src/components/SearchFacets.js @@ -9,7 +9,6 @@ import { import React, { useCallback, useRef } from 'react'; import { useTranslation } from 'react-i18next'; import { - useHits, useRange, useRefinementList, useToggleRefinement @@ -24,7 +23,6 @@ const MAX_SHOW_MORE_LIMIT = 1000; const SearchFacets = (props: any) => { const { getLabel } = useFacetLabels(); - const { hits } = useHits(props); const { t } = useTranslation(); const refs = useRef([]); @@ -68,10 +66,6 @@ const SearchFacets = (props: any) => { */ const setRef = useCallback((element) => refs.current.push(element), [refs]); - if (_.isEmpty(hits)) { - return null; - } - return ( {