mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
fix: don't crash if templateData is undefined
This commit is contained in:
@@ -109,7 +109,7 @@ function renderWidget(widget, uid, options, callback) {
|
|||||||
Benchpress.compileParse(widget.data.container, {
|
Benchpress.compileParse(widget.data.container, {
|
||||||
title: widget.data.title,
|
title: widget.data.title,
|
||||||
body: html,
|
body: html,
|
||||||
template: data.templateData.template,
|
template: data.templateData && data.templateData.template,
|
||||||
}, next);
|
}, next);
|
||||||
} else {
|
} else {
|
||||||
next(null, html);
|
next(null, html);
|
||||||
|
|||||||
Reference in New Issue
Block a user