diff --git a/src/utils/widgets.js b/src/utils/widgets.js index c2eae88b17..edbe78fd58 100644 --- a/src/utils/widgets.js +++ b/src/utils/widgets.js @@ -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()); } /**