diff --git a/ee/tabby-webserver/src/service/github_repository.rs b/ee/tabby-webserver/src/service/github_repository.rs index 4888757e6167..104d3b1fdc85 100644 --- a/ee/tabby-webserver/src/service/github_repository.rs +++ b/ee/tabby-webserver/src/service/github_repository.rs @@ -142,7 +142,10 @@ impl GithubRepositoryService for GithubRepositoryProviderServiceImpl { let mut repos = self .list_repositories(vec![], None, None, None, None) - .await?; + .await? + .into_iter() + .filter(|x| x.active) + .collect(); deduplicate_github_repositories(&mut repos); diff --git a/ee/tabby-webserver/src/service/gitlab_repository.rs b/ee/tabby-webserver/src/service/gitlab_repository.rs index 9c134988c7a9..dcf1a9cbc22c 100644 --- a/ee/tabby-webserver/src/service/gitlab_repository.rs +++ b/ee/tabby-webserver/src/service/gitlab_repository.rs @@ -142,7 +142,10 @@ impl GitlabRepositoryService for GitlabRepositoryProviderServiceImpl { let mut repos = self .list_repositories(vec![], None, None, None, None) - .await?; + .await? + .into_iter() + .filter(|x| x.active) + .collect(); deduplicate_gitlab_repositories(&mut repos);