Cleanup / simplify code.

pull/21833/head
Richard Lewis 2018-03-29 17:52:34 +01:00
parent 6181ca642f
commit b1e7dcf216
1 changed files with 1 additions and 2 deletions

View File

@ -49,8 +49,7 @@ function getUserWidgets() {
* @return {[object]} Array containing current / active user widgets * @return {[object]} Array containing current / active user widgets
*/ */
function getUserWidgetsArray() { function getUserWidgetsArray() {
const userWidgetContent = getUserWidgets(); return Object.values(getUserWidgets());
return Object.keys(userWidgetContent).map((key) => userWidgetContent[key]);
} }
/** /**