From 31328e79becfc67f771dfbb761f56cc4db1217d9 Mon Sep 17 00:00:00 2001 From: Abbie Petchtes Date: Tue, 1 May 2018 15:00:19 -0700 Subject: [PATCH] clear the widget error every time it refreshes (#1306) * clear the widget error every time it refreshes * address comments --- .../dashboard/widgets/insights/insightsWidget.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sql/parts/dashboard/widgets/insights/insightsWidget.component.ts b/src/sql/parts/dashboard/widgets/insights/insightsWidget.component.ts index 139b90e3be..d90af680b5 100644 --- a/src/sql/parts/dashboard/widgets/insights/insightsWidget.component.ts +++ b/src/sql/parts/dashboard/widgets/insights/insightsWidget.component.ts @@ -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'));