initialize Diffstore sorters and filters with empty arrays

ExtJS expect this properties to be arrays of Filters/Sorters
objects, but sets them to null

setting an empty array here allows to push sorters/filters easily
later

This fix allows loading the Hardware Tab of the Qemu Panel
This commit is contained in:
Emmanuel Kasper 2016-03-17 10:31:09 +01:00 committed by Dietmar Maurer
parent 6f68dcbedd
commit c5b0115067

View File

@ -66,7 +66,10 @@ Ext.define('PVE.grid.ObjectGrid', {
var rstore = me.rstore;
var store = Ext.create('PVE.data.DiffStore', { rstore: rstore, filters: [] });
var store = Ext.create('PVE.data.DiffStore', { rstore: rstore,
sorters: [],
filters: []
});
if (rows) {
Ext.Object.each(rows, function(key, rowdef) {