mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
chore: up peace, refactor widgets
This commit is contained in:
@@ -109,7 +109,7 @@
|
||||
"nodebb-rewards-essentials": "1.0.0",
|
||||
"nodebb-theme-harmony": "1.2.90",
|
||||
"nodebb-theme-lavender": "7.1.17",
|
||||
"nodebb-theme-peace": "2.2.31",
|
||||
"nodebb-theme-peace": "2.2.32",
|
||||
"nodebb-theme-persona": "13.3.60",
|
||||
"nodebb-widget-essentials": "7.0.31",
|
||||
"nodemailer": "6.9.16",
|
||||
|
||||
@@ -14,10 +14,7 @@ module.exports.render = function (template) {
|
||||
return;
|
||||
}
|
||||
|
||||
let html = '';
|
||||
widgetsAtLocation.forEach(function (widget) {
|
||||
html += widget.html;
|
||||
});
|
||||
const html = widgetsAtLocation.map(widget => widget.html).join('');
|
||||
if (!html) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user