mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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 {
|
private _updateChild(result: SimpleExecuteResult): void {
|
||||||
this.componentHost.viewContainerRef.clear();
|
this.componentHost.viewContainerRef.clear();
|
||||||
|
this.error = undefined;
|
||||||
|
this._cd.detectChanges();
|
||||||
|
|
||||||
if (result.rowCount === 0) {
|
if (result.rowCount === 0) {
|
||||||
this.showError(nls.localize('noResults', 'No results to show'));
|
this.showError(nls.localize('noResults', 'No results to show'));
|
||||||
|
|||||||
Reference in New Issue
Block a user