mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-06-19 04:27:05 +00:00
object grid: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a2f0234d48
commit
f0f898d2dd
@ -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