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 bf04a60fe3
commit 9c15cdb1a5

View File

@ -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);
},