Skip to content

Commit d33fa5d

Browse files
committed
Hide repositories with raw results without rows
Currently, when running a query which produces raw results, we will show all repositories, even if they do not have any results. This change will ensure that we are only showing repositories which have results. This matches the behavior for queries which produce interpreted results.
1 parent 110d930 commit d33fa5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ql-vscode/src/view/remote-queries/RemoteQueries.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ const AnalysesResults = ({
377377

378378
<ul className="vscode-codeql__flat-list">
379379
{analysesResults
380-
.filter(a => a.interpretedResults.length > 0 || a.rawResults)
380+
.filter(a => a.interpretedResults.length > 0 || (a.rawResults?.resultSet.rows && a.rawResults.resultSet.rows.length > 0))
381381
.filter(a => a.nwo.toLowerCase().includes(filterValue.toLowerCase()))
382382
.sort(sorter(sort))
383383
.map(r =>

0 commit comments

Comments
 (0)