mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -05:00
clear the widget error every time it refreshes (#1306)
* clear the widget error every time it refreshes * address comments
This commit is contained in:
@@ -202,6 +202,8 @@ export class InsightsWidget extends DashboardWidget implements IDashboardWidget,
|
||||
|
||||
private _updateChild(result: SimpleExecuteResult): void {
|
||||
this.componentHost.viewContainerRef.clear();
|
||||
this.error = undefined;
|
||||
this._cd.detectChanges();
|
||||
|
||||
if (result.rowCount === 0) {
|
||||
this.showError(nls.localize('noResults', 'No results to show'));
|
||||
|
||||
Reference in New Issue
Block a user