Api: Swap sparse account array/object for simple list to fix missing options in select account widget

This commit is contained in:
nathan 2023-07-11 14:16:10 -06:00
parent 44f88aba54
commit f6a15f3c94

View File

@ -132,11 +132,11 @@ egw.extend('user', egw.MODULE_GLOBAL, function()
let result = []; let result = [];
if (type === 'both') if (type === 'both')
{ {
result = [].concat(accountStore.accounts, accountStore.groups); result = [...Object.values(accountStore.accounts), ...Object.values(accountStore.groups)];
} }
else else
{ {
result = [].concat(accountStore[type]); result = [...Object.values(accountStore[type])];
} }
return Promise.resolve(result); return Promise.resolve(result);
}, },