Only copy repos that have results when copying repo list (#1406)

This commit is contained in:
Charis Kyriakou
2022-06-24 14:13:33 +01:00
committed by GitHub
parent 9c29c5c9c6
commit 539a494914

View File

@@ -193,7 +193,9 @@ export class RemoteQueriesManager extends DisposableObject {
public async copyRemoteQueryRepoListToClipboard(queryId: string) {
const queryResult = await this.getRemoteQueryResult(queryId);
const repos = queryResult.analysisSummaries.map(a => a.nwo);
const repos = queryResult.analysisSummaries
.filter(a => a.resultCount > 0)
.map(a => a.nwo);
if (repos.length > 0) {
const text = [