object grid: code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-21 16:38:37 +02:00
parent 2e8620aea2
commit 22b189e40c

View File

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