diff --git a/src/widgets/index.js b/src/widgets/index.js index 1e0ac6415d..d4e84b3bb4 100644 --- a/src/widgets/index.js +++ b/src/widgets/index.js @@ -39,7 +39,7 @@ widgets.render = async function (uid, options) { return returnData; }; -async function renderLocation(location, data, uid, options, config) { +async function renderLocation({ location, data, uid, options, config }) { const widgetsAtLocation = (data[options.template][location] || []).concat(data.global[location] || []); if (!widgetsAtLocation.length) {