diff --git a/src/domain/Inputs/HierarchicalSelectInput/HierarchicalSelectInput.tsx b/src/domain/Inputs/HierarchicalSelectInput/HierarchicalSelectInput.tsx index 7a70737ca..0f01a0a4a 100644 --- a/src/domain/Inputs/HierarchicalSelectInput/HierarchicalSelectInput.tsx +++ b/src/domain/Inputs/HierarchicalSelectInput/HierarchicalSelectInput.tsx @@ -118,7 +118,7 @@ const HierarchicalSelectInput: React.FC = (props) filterOption={(filterOption)} multi={isMultiSelect} name={isMultiSelect ? `${name}[]` : name} - noResultsText={noResultsText} + noResultsText={noResultsText || t('selectNoResultsFound', {defaultValue: 'No results found'})} onBlurResetsInput onChange={handleChange} onCloseResetsInput diff --git a/src/domain/Inputs/SelectInput/SelectInput.tsx b/src/domain/Inputs/SelectInput/SelectInput.tsx index 325b36a0d..6c53b97f8 100644 --- a/src/domain/Inputs/SelectInput/SelectInput.tsx +++ b/src/domain/Inputs/SelectInput/SelectInput.tsx @@ -92,6 +92,7 @@ export const SelectInput: React.FC = (props) => { ) } diff --git a/src/domain/Inputs/SelectInput/__snapshots__/SelectInput.test.tsx.snap b/src/domain/Inputs/SelectInput/__snapshots__/SelectInput.test.tsx.snap index 7c0015701..3a5d592e0 100644 --- a/src/domain/Inputs/SelectInput/__snapshots__/SelectInput.test.tsx.snap +++ b/src/domain/Inputs/SelectInput/__snapshots__/SelectInput.test.tsx.snap @@ -5,6 +5,7 @@ exports[` should render a creatable select box 1`] = ` isClearable={true} isSearchable={true} name="test" + noResultsText="No results found" onNewOptionCreated={[Function]} options={ Array [ @@ -32,6 +33,7 @@ exports[` should render a multi select box with options 1`] = ` isMultiSelect={true} isSearchable={true} name="test" + noResultsText="No results found" options={ Array [ Object { @@ -57,6 +59,7 @@ exports[` should render a select box with options 1`] = ` isClearable={true} isSearchable={true} name="test" + noResultsText="No results found" options={ Array [ Object {