mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
Cleanup / simplify code.
This commit is contained in:
parent
6181ca642f
commit
b1e7dcf216
@ -49,8 +49,7 @@ function getUserWidgets() {
|
||||
* @return {[object]} Array containing current / active user widgets
|
||||
*/
|
||||
function getUserWidgetsArray() {
|
||||
const userWidgetContent = getUserWidgets();
|
||||
return Object.keys(userWidgetContent).map((key) => userWidgetContent[key]);
|
||||
return Object.values(getUserWidgets());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user