mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-21 20:30:29 -04:00
Fix nullref exception showing query plan panel (#1516)
This commit is contained in:
@@ -51,6 +51,7 @@ export class QueryOutputComponent implements OnDestroy {
|
||||
private readonly resultsTabIdentifier = 'results';
|
||||
private readonly queryPlanTabIdentifier = 'queryPlan';
|
||||
private readonly chartViewerTabIdentifier = 'chartViewer';
|
||||
private readonly topOperationsTabIdentifier = 'topOperations';
|
||||
// tslint:enable:no-unused-variable
|
||||
|
||||
private hasQueryPlan = false;
|
||||
@@ -77,9 +78,10 @@ export class QueryOutputComponent implements OnDestroy {
|
||||
this._disposables.push(toDisposableSubscription(this.queryComponent.queryPlanAvailable.subscribe((xml) => {
|
||||
this.hasQueryPlan = true;
|
||||
this._cd.detectChanges();
|
||||
this._panel.selectTab(this.topOperationsTabIdentifier);
|
||||
this.topOperationsComponent.planXml = xml;
|
||||
this._panel.selectTab(this.queryPlanTabIdentifier);
|
||||
this.queryPlanComponent.planXml = xml;
|
||||
this.topOperationsComponent.planXml = xml;
|
||||
})));
|
||||
|
||||
this._disposables.push(toDisposableSubscription(this.queryComponent.showChartRequested.subscribe((dataSet) => {
|
||||
|
||||
Reference in New Issue
Block a user