From 22b189e40c301b9a7f4e9b44cbcd9b9f82f00751 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 21 May 2021 16:38:37 +0200 Subject: [PATCH] object grid: code cleanup Signed-off-by: Thomas Lamprecht --- src/grid/ObjectGrid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grid/ObjectGrid.js b/src/grid/ObjectGrid.js index 541cf1d..425d3c2 100644 --- a/src/grid/ObjectGrid.js +++ b/src/grid/ObjectGrid.js @@ -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) {