]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
object grid: code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 May 2021 14:38:37 +0000 (16:38 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 May 2021 14:38:37 +0000 (16:38 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/grid/ObjectGrid.js

index 541cf1dddd14090e6ba4fae73fd8d2fd12787e6a..425d3c2dcbe759758c527e0270bd9751bf606fae 100644 (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) {