diff --git a/src/vis/bar/components/FocusFacetSelector.tsx b/src/vis/bar/components/FocusFacetSelector.tsx index 724f4d131..44e27eb96 100644 --- a/src/vis/bar/components/FocusFacetSelector.tsx +++ b/src/vis/bar/components/FocusFacetSelector.tsx @@ -6,7 +6,7 @@ import type { ICommonVisProps } from '../../interfaces'; import { IBarConfig } from '../interfaces'; export function FocusFacetSelector({ config, setConfig, facets }: Pick, 'config' | 'setConfig'> & { facets: string[] }) { - const isFacetFocused = React.useMemo(() => config?.focusFacetIndex !== null && config?.focusFacetIndex !== undefined, [config?.focusFacetIndex]); + const isFacetFocused: boolean = React.useMemo(() => config?.focusFacetIndex !== null && config?.focusFacetIndex !== undefined, [config?.focusFacetIndex]); if (!config?.facets && facets.length === 0) { return null; @@ -19,7 +19,7 @@ export function FocusFacetSelector({ config, setConfig, facets }: Pick { setConfig?.({ ...config, focusFacetIndex: typeof value === 'string' ? facets.indexOf(value) : value }); }}