From 9c15cdb1a5021dea01be6d3f9fce55a2256093f3 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 11 Jul 2023 14:16:10 -0600 Subject: [PATCH] Api: Swap sparse account array/object for simple list to fix missing options in select account widget --- api/js/jsapi/egw_user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/jsapi/egw_user.js b/api/js/jsapi/egw_user.js index c0c7cc918d..b1e7c3303e 100644 --- a/api/js/jsapi/egw_user.js +++ b/api/js/jsapi/egw_user.js @@ -132,11 +132,11 @@ egw.extend('user', egw.MODULE_GLOBAL, function() let result = []; if (type === 'both') { - result = [].concat(accountStore.accounts, accountStore.groups); + result = [...Object.values(accountStore.accounts), ...Object.values(accountStore.groups)]; } else { - result = [].concat(accountStore[type]); + result = [...Object.values(accountStore[type])]; } return Promise.resolve(result); },