diff --git a/client/src/components/forms/select/autocomplete/component.tsx b/client/src/components/forms/select/autocomplete/component.tsx index e58905784..a578e554a 100644 --- a/client/src/components/forms/select/autocomplete/component.tsx +++ b/client/src/components/forms/select/autocomplete/component.tsx @@ -119,7 +119,7 @@ const AutoCompleteSelect = ({ ); }, - [filteredOptions], + [filteredOptions, props], ); const clearSelection = useCallback(() => { diff --git a/client/src/components/forms/select/types.d.ts b/client/src/components/forms/select/types.d.ts index 6c10b7964..a6a9157c3 100644 --- a/client/src/components/forms/select/types.d.ts +++ b/client/src/components/forms/select/types.d.ts @@ -4,7 +4,7 @@ export type Option = { disabled?: boolean; }; -type SelectValue = M extends true ? Option[] : Option; +type SelectValue = M extends true ? Option[] : Option; export type SelectProps = Omit< React.SelectHTMLAttributes, diff --git a/client/src/containers/analysis-visualization/analysis-filters/group-by/component.tsx b/client/src/containers/analysis-visualization/analysis-filters/group-by/component.tsx index a14b488cb..e46b311af 100644 --- a/client/src/containers/analysis-visualization/analysis-filters/group-by/component.tsx +++ b/client/src/containers/analysis-visualization/analysis-filters/group-by/component.tsx @@ -76,7 +76,7 @@ const GroupByFilter: React.FC = () => { value={currentValue} options={options} onChange={handleChange} - data-testid='group-filters' + data-testid="group-filters" /> ); }; diff --git a/client/src/pages/data/scenarios/index.tsx b/client/src/pages/data/scenarios/index.tsx index 8cd1c5492..db0c08d62 100644 --- a/client/src/pages/data/scenarios/index.tsx +++ b/client/src/pages/data/scenarios/index.tsx @@ -8,7 +8,7 @@ import { omit } from 'lodash-es'; import ListIcon from 'components/icons/list'; import GridIcon from 'components/icons/grid'; import ButtonGroup, { LinkGroupItem } from 'components/button-group'; -import Select, { Option } from 'components/forms/select'; +import Select from 'components/forms/select'; import Search from 'components/search'; import { useScenarios } from 'hooks/scenarios'; import AdminLayout from 'layouts/admin'; @@ -18,6 +18,7 @@ import Loading from 'components/loading'; import { usePermissions } from 'hooks/permissions'; import { Permission } from 'hooks/permissions/enums'; +import type { Option } from 'components/forms/select'; import type { ScenarioCardProps } from 'containers/scenarios/card/types'; const DISPLAY_OPTIONS: ScenarioCardProps['display'][] = ['grid', 'list'];