mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-08-06 15:09:43 +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) {
|
if (rows) {
|
||||||
Ext.Object.each(rows, function(key, rowdef) {
|
for (const [key, rowdef] of Object.entries(rows)) {
|
||||||
if (Ext.isDefined(rowdef.defaultValue)) {
|
if (Ext.isDefined(rowdef.defaultValue)) {
|
||||||
store.add({ key: key, value: rowdef.defaultValue });
|
store.add({ key: key, value: rowdef.defaultValue });
|
||||||
} else if (rowdef.required) {
|
} else if (rowdef.required) {
|
||||||
store.add({ key: key, value: undefined });
|
store.add({ key: key, value: undefined });
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (me.sorterFn) {
|
if (me.sorterFn) {
|
||||||
|
Loading…
Reference in New Issue
Block a user