diff --git a/ee/tabby-ui/app/files/components/file-tree-header.tsx b/ee/tabby-ui/app/files/components/file-tree-header.tsx index 7deda53049e4..570e882ce0da 100644 --- a/ee/tabby-ui/app/files/components/file-tree-header.tsx +++ b/ee/tabby-ui/app/files/components/file-tree-header.tsx @@ -92,7 +92,7 @@ const FileTreeHeader: React.FC = ({ id: option.path })) ?? [] setOptions(_options) - setOptionsVisible(!!_options?.length) + setOptionsVisible(!!repositorySearchFilter) }, [repositorySearchData?.repositorySearch]) const onSelectRepo = (name: string) => { @@ -116,7 +116,7 @@ const FileTreeHeader: React.FC = ({ ignoreFetchResultRef.current = false setRepositorySearchFilter(v) } - }, 500) + }, 300) const onClearInput = () => { onInputValueChange.run('')