chore: up peace, refactor widgets

This commit is contained in:
Barış Soner Uşaklı
2024-12-13 10:55:47 -05:00
parent a79426f9e5
commit 0f5e1457f0
2 changed files with 2 additions and 5 deletions

View File

@@ -109,7 +109,7 @@
"nodebb-rewards-essentials": "1.0.0", "nodebb-rewards-essentials": "1.0.0",
"nodebb-theme-harmony": "1.2.90", "nodebb-theme-harmony": "1.2.90",
"nodebb-theme-lavender": "7.1.17", "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-theme-persona": "13.3.60",
"nodebb-widget-essentials": "7.0.31", "nodebb-widget-essentials": "7.0.31",
"nodemailer": "6.9.16", "nodemailer": "6.9.16",

View File

@@ -14,10 +14,7 @@ module.exports.render = function (template) {
return; return;
} }
let html = ''; const html = widgetsAtLocation.map(widget => widget.html).join('');
widgetsAtLocation.forEach(function (widget) {
html += widget.html;
});
if (!html) { if (!html) {
return; return;
} }