object grid: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
2e8620aea2
commit
22b189e40c
@ -269,13 +269,13 @@ Ext.define('Proxmox.grid.ObjectGrid', {
|
||||
});
|
||||
|
||||
if (rows) {
|
||||
Ext.Object.each(rows, function(key, rowdef) {
|
||||
for (const [key, rowdef] of Object.entries(rows)) {
|
||||
if (Ext.isDefined(rowdef.defaultValue)) {
|
||||
store.add({ key: key, value: rowdef.defaultValue });
|
||||
} else if (rowdef.required) {
|
||||
store.add({ key: key, value: undefined });
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (me.sorterFn) {
|
||||
|
Loading…
Reference in New Issue
Block a user