Skip to content

Commit

Permalink
fix: build failed issue
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Amrutiya <[email protected]>
  • Loading branch information
amitamrutiya committed Nov 6, 2024
1 parent 1305231 commit de8a19b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/custom/InputSearchField/InputSearchField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ const InputFieldSearch: React.FC<InputFieldSearchProps> = ({
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
Expand Down
6 changes: 4 additions & 2 deletions src/custom/UserSearchField/UserSearchFieldInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ const UserSearchField: React.FC<UserSearchFieldProps> = ({
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

Check failure on line 171 in src/custom/UserSearchField/UserSearchFieldInput.tsx

View workflow job for this annotation

GitHub Actions / checks (16)

Unused '@ts-expect-error' directive.

Check failure on line 171 in src/custom/UserSearchField/UserSearchFieldInput.tsx

View workflow job for this annotation

GitHub Actions / checks (18)

Unused '@ts-expect-error' directive.

Check failure on line 171 in src/custom/UserSearchField/UserSearchFieldInput.tsx

View workflow job for this annotation

GitHub Actions / checks (20)

Unused '@ts-expect-error' directive.
filterOptions={(options, { inputValue }) => {
return options.filter((option: User) => {
const searchStr = inputValue.toLowerCase();
return (
option.first_name.toLowerCase().includes(searchStr) ||
Expand Down

0 comments on commit de8a19b

Please sign in to comment.