add null check for errors in the console while using query editor (#15711)

* add null check

* another null check

* pr comments

* update typing
This commit is contained in:
Alan Ren
2021-06-15 16:05:38 -07:00
committed by GitHub
parent a8f3d97f59
commit 5bd1552a59
4 changed files with 7 additions and 6 deletions

View File

@@ -201,7 +201,7 @@ export class QueryResultsView extends Disposable {
private hasResults(runner: QueryRunner): boolean {
let hasResults = false;
for (const batch of runner.batchSets) {
if (batch.resultSetSummaries.length > 0) {
if (batch.resultSetSummaries?.length > 0) {
hasResults = true;
break;
}