From 83daeed72a0064e59520f1edfda017705647705d Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 22 Apr 2024 13:06:16 +0200 Subject: [PATCH] ui: fix layout reset we have to iterate over the keys of the state object here, not over the values. This meant one could not reset the layout from the settings window. Signed-off-by: Dominik Csapak --- www/window/Settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/window/Settings.js b/www/window/Settings.js index 763cefabc..c785dd881 100644 --- a/www/window/Settings.js +++ b/www/window/Settings.js @@ -96,7 +96,7 @@ Ext.define('PBS.window.Settings', { click: function() { let blacklist = ['login-username']; let sp = Ext.state.Manager.getProvider(); - for (const state of Object.values(sp.state)) { + for (const state of Object.keys(sp.state)) { if (blacklist.indexOf(state) !== -1) { continue; }