From 1dc76fa17107ae416fb99138ee23e9dce35196ec Mon Sep 17 00:00:00 2001 From: Aditya Bist Date: Mon, 17 Sep 2018 14:47:46 -0700 Subject: [PATCH] Dashboard: Fixed all insight bugs (#2612) * fixed all insight bugs * removed unused imports * added comment --- src/sql/parts/insights/browser/insightsDialogView.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sql/parts/insights/browser/insightsDialogView.ts b/src/sql/parts/insights/browser/insightsDialogView.ts index 631910ec49..b27c8856ed 100644 --- a/src/sql/parts/insights/browser/insightsDialogView.ts +++ b/src/sql/parts/insights/browser/insightsDialogView.ts @@ -188,8 +188,16 @@ export class InsightsDialogView extends Modal { for (let i = 0; i < this._model.columns.length; i++) { resourceArray.push({ label: this._model.columns[i], value: element.data[i], data: element.data }); } + this._bottomTableData.clear(); this._bottomTableData.push(resourceArray); + // this table view has to be collapsed and expanded + // because the initial expand doesn't have the + // loaded data + if (bottomTableView.isExpanded()) { + bottomTableView.collapse(); + bottomTableView.expand(); + } this._enableTaskButtons(true); } else { this._enableTaskButtons(false);