diff --git a/www/dashboard/DataStoreStatistics.js b/www/dashboard/DataStoreStatistics.js index 6736e616..c71f13c2 100644 --- a/www/dashboard/DataStoreStatistics.js +++ b/www/dashboard/DataStoreStatistics.js @@ -2,7 +2,19 @@ Ext.define('pbs-datastore-statistics', { extend: 'Ext.data.Model', fields: [ - 'store', 'total', 'used', 'avail', 'estimated-full-date', 'history', + 'store', 'total', 'used', 'avail', 'estimated-full-date', + { + name: 'history', + convert: function(values) { + let last = null; + return values.map(v => { + if (v !== undefined && v !== null) { + last = v; + } + return last; + }); + } + }, { name: 'usage', calculate: function(data) {