Dashboard: Fixed all insight bugs (#2612)

* fixed all insight bugs

* removed unused imports

* added comment
This commit is contained in:
Aditya Bist
2018-09-17 14:47:46 -07:00
committed by GitHub
parent 1d37b9ae9c
commit 1dc76fa171

View File

@@ -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);