diff --git a/src/custom/InputSearchField/InputSearchField.tsx b/src/custom/InputSearchField/InputSearchField.tsx index c6c799fb..7cefc014 100644 --- a/src/custom/InputSearchField/InputSearchField.tsx +++ b/src/custom/InputSearchField/InputSearchField.tsx @@ -107,7 +107,9 @@ const InputFieldSearch: React.FC = ({ inputValue={searchValue} onChange={handleAdd} onInputChange={handleInputChange} - ffilterOptions={(x) => x} + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + filterOptions={(x) => x} disableClearable includeInputInList filterSelectedOptions diff --git a/src/custom/UserSearchField/UserSearchFieldInput.tsx b/src/custom/UserSearchField/UserSearchFieldInput.tsx index 07ce1dac..4263b755 100644 --- a/src/custom/UserSearchField/UserSearchFieldInput.tsx +++ b/src/custom/UserSearchField/UserSearchFieldInput.tsx @@ -167,8 +167,10 @@ const UserSearchField: React.FC = ({ options={displayOptions} getOptionLabel={() => inputValue} isOptionEqualToValue={(option, value) => option.id === value.id} - ffilterOptions={(options, { inputValue }) => { - return options.filter((option) => { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + //@ts-expect-error + filterOptions={(options, { inputValue }) => { + return options.filter((option: User) => { const searchStr = inputValue.toLowerCase(); return ( option.first_name.toLowerCase().includes(searchStr) ||