Cleanup / simplify code.
This commit is contained in:
@@ -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]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user