Skip to content

Commit

Permalink
del: cacheOptions for avoided false result
Browse files Browse the repository at this point in the history
  • Loading branch information
PUECH Fabien committed Feb 6, 2024
1 parent 61a272b commit 07db53e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ interface IProps {
suggestions: OptionTypeBase[];
value: string;
handleChange: any;
url: string;
label: string;
placeholder?: string;
loadSuggestions?: (inputValue: string) => Promise<IOptionTypeBase[]>;
Expand Down Expand Up @@ -120,7 +119,6 @@ class IntegrationReactSelect extends React.Component<IProps> {
<AsyncSelect
className="jp-EodagWidget-select"
classNamePrefix="jp-EodagWidget-select"
cacheOptions
defaultOptions={suggestions}
loadOptions={loadSuggestions}
components={listcomponents}
Expand Down
2 changes: 0 additions & 2 deletions src/FormComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ export const FormComponent: FC<IProps> = ({
render={({ field: { onChange, value } }) => (
<Autocomplete
label="Provider"
url="providers?product_type"
placeholder="Any"
suggestions={providers}
value={value}
Expand All @@ -193,7 +192,6 @@ export const FormComponent: FC<IProps> = ({
render={({ field: { onChange, value } }) => (
<Autocomplete
label="Product Type"
url="product-types?provider"
suggestions={productTypes}
placeholder="S2_..."
value={value}
Expand Down

0 comments on commit 07db53e

Please sign in to comment.