mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
@@ -31,7 +31,7 @@ widgets.render = function (uid, options, callback) {
|
|||||||
var returnData = {};
|
var returnData = {};
|
||||||
|
|
||||||
async.each(locations, function (location, done) {
|
async.each(locations, function (location, done) {
|
||||||
widgetsByLocation[location] = (data.global[location] || []).concat(data[options.template][location] || []);
|
widgetsByLocation[location] = (data[options.template][location] || []).concat(data.global[location] || []);
|
||||||
|
|
||||||
if (!widgetsByLocation[location].length) {
|
if (!widgetsByLocation[location].length) {
|
||||||
return done(null, { location: location, widgets: [] });
|
return done(null, { location: location, widgets: [] });
|
||||||
|
|||||||
Reference in New Issue
Block a user