File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,9 @@ const InputFieldSearch: React.FC<InputFieldSearchProps> = ({
107
107
inputValue = { searchValue }
108
108
onChange = { handleAdd }
109
109
onInputChange = { handleInputChange }
110
- ffilterOptions = { ( x ) => x }
110
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
111
+ // @ts -ignore
112
+ filterOptions = { ( x ) => x }
111
113
disableClearable
112
114
includeInputInList
113
115
filterSelectedOptions
Original file line number Diff line number Diff line change @@ -167,8 +167,10 @@ const UserSearchField: React.FC<UserSearchFieldProps> = ({
167
167
options = { displayOptions }
168
168
getOptionLabel = { ( ) => inputValue }
169
169
isOptionEqualToValue = { ( option , value ) => option . id === value . id }
170
- ffilterOptions = { ( options , { inputValue } ) => {
171
- return options . filter ( ( option ) => {
170
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
171
+ // @ts -ignore
172
+ filterOptions = { ( options , { inputValue } ) => {
173
+ return options . filter ( ( option : User ) => {
172
174
const searchStr = inputValue . toLowerCase ( ) ;
173
175
return (
174
176
option . first_name . toLowerCase ( ) . includes ( searchStr ) ||
You can’t perform that action at this time.
0 commit comments