mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
Api: Swap sparse account array/object for simple list to fix missing options in select account widget
This commit is contained in:
parent
44f88aba54
commit
f6a15f3c94
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user