Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung committed Mar 28, 2024
1 parent 6b68e4d commit b6cd63e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ee/tabby-ui/app/files/components/file-tree-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const FileTreeHeader: React.FC<FileTreeHeaderProps> = ({
id: option.path
})) ?? []
setOptions(_options)
setOptionsVisible(!!_options?.length)
setOptionsVisible(!!repositorySearchFilter)
}, [repositorySearchData?.repositorySearch])

const onSelectRepo = (name: string) => {
Expand All @@ -116,7 +116,7 @@ const FileTreeHeader: React.FC<FileTreeHeaderProps> = ({
ignoreFetchResultRef.current = false
setRepositorySearchFilter(v)
}
}, 500)
}, 300)

const onClearInput = () => {
onInputValueChange.run('')
Expand Down

0 comments on commit b6cd63e

Please sign in to comment.