correctly using the latest data for table.

pull/296/head
Jason Kulatunga 2 years ago
parent 9e1076f302
commit 3c9e16169e

@ -291,7 +291,7 @@ export class DetailComponent implements OnInit, AfterViewInit, OnDestroy {
if(smart_results.length == 0){ if(smart_results.length == 0){
return smartAttributeDataSource return smartAttributeDataSource
} }
var latest_smart_result = smart_results[0]; var latest_smart_result = smart_results[smart_results.length -1];
let attributes = {} let attributes = {}
if(this.isScsi()) { if(this.isScsi()) {
this.smartAttributeTableColumns = ['status', 'name', 'value', 'thresh', 'history']; this.smartAttributeTableColumns = ['status', 'name', 'value', 'thresh', 'history'];

Loading…
Cancel
Save