From 134ffcc304f83bb89c0d931d40953cc06705476b Mon Sep 17 00:00:00 2001 From: liangfung <1098486429@qq.com> Date: Thu, 28 Mar 2024 14:54:21 +0800 Subject: [PATCH] update --- ee/tabby-ui/app/files/components/file-tree-header.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 570e882ce0da..d43bbc2b474b 100644 --- a/ee/tabby-ui/app/files/components/file-tree-header.tsx +++ b/ee/tabby-ui/app/files/components/file-tree-header.tsx @@ -41,8 +41,8 @@ interface FileTreeHeaderProps extends React.HTMLAttributes {} type SearchOption = { path: string; type: string; id: string } const repositorySearch = graphql(/* GraphQL */ ` - query RepositorySearch($repository: String!, $filter: String, $topN: Int!) { - repositorySearch(repository: $repository, filter: $filter, topN: $topN) { + query RepositorySearch($repository: String!, $filter: String) { + repositorySearch(repository: $repository, filter: $filter) { type path } @@ -79,8 +79,7 @@ const FileTreeHeader: React.FC = ({ query: repositorySearch, variables: { repository: curerntRepoName, - filter: repositorySearchFilter, - topN: 20 + filter: repositorySearchFilter }, pause: !repositorySearchFilter })