From b1e7dcf21645d3dc9ce365426cb0f3e621d297c4 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Thu, 29 Mar 2018 17:52:34 +0100 Subject: [PATCH] Cleanup / simplify code. --- src/utils/widgets.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()); } /**