Skip to content

Commit befe427

Browse files
committed
fix: build failed issue
Signed-off-by: Amit Amrutiya <[email protected]>
1 parent 1305231 commit befe427

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/custom/InputSearchField/InputSearchField.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ const InputFieldSearch: React.FC<InputFieldSearchProps> = ({
107107
inputValue={searchValue}
108108
onChange={handleAdd}
109109
onInputChange={handleInputChange}
110-
ffilterOptions={(x) => x}
110+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
111+
// @ts-ignore
112+
filterOptions={(x) => x}
111113
disableClearable
112114
includeInputInList
113115
filterSelectedOptions

src/custom/UserSearchField/UserSearchFieldInput.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,10 @@ const UserSearchField: React.FC<UserSearchFieldProps> = ({
167167
options={displayOptions}
168168
getOptionLabel={() => inputValue}
169169
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) => {
172174
const searchStr = inputValue.toLowerCase();
173175
return (
174176
option.first_name.toLowerCase().includes(searchStr) ||

0 commit comments

Comments
 (0)