diff --git a/src/sql/parts/dashboard/widgets/insights/insightsWidget.component.ts b/src/sql/parts/dashboard/widgets/insights/insightsWidget.component.ts index 22ec0c8421..50136711eb 100644 --- a/src/sql/parts/dashboard/widgets/insights/insightsWidget.component.ts +++ b/src/sql/parts/dashboard/widgets/insights/insightsWidget.component.ts @@ -198,11 +198,11 @@ export class InsightsWidget extends DashboardWidget implements IDashboardWidget, let componentRef = this.componentHost.viewContainerRef.createComponent(componentFactory); let componentInstance = componentRef.instance; - componentInstance.data = { columns: result.columnInfo.map(item => item.columnName), rows: result.rows.map(row => row.map(item => item.displayValue)) }; // check if the setter is defined if (componentInstance.setConfig) { componentInstance.setConfig(this.insightConfig.type[this._typeKey]); } + componentInstance.data = { columns: result.columnInfo.map(item => item.columnName), rows: result.rows.map(row => row.map(item => item.displayValue)) }; if (componentInstance.init) { componentInstance.init(); diff --git a/src/sql/parts/dashboard/widgets/insights/views/charts/chartInsight.component.ts b/src/sql/parts/dashboard/widgets/insights/views/charts/chartInsight.component.ts index 52be125f2b..6de38a8996 100644 --- a/src/sql/parts/dashboard/widgets/insights/views/charts/chartInsight.component.ts +++ b/src/sql/parts/dashboard/widgets/insights/views/charts/chartInsight.component.ts @@ -90,7 +90,7 @@ export const defaultChartConfig: IChartConfig = { @Component({ template: `
-