From eb2c3e562670db930b39418283a31685ef52ceaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 9 Apr 2019 13:01:46 -0400 Subject: [PATCH] fix: don't crash if templateData is undefined --- src/widgets/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/index.js b/src/widgets/index.js index 59f6fb0de4..216f4435e0 100644 --- a/src/widgets/index.js +++ b/src/widgets/index.js @@ -109,7 +109,7 @@ function renderWidget(widget, uid, options, callback) { Benchpress.compileParse(widget.data.container, { title: widget.data.title, body: html, - template: data.templateData.template, + template: data.templateData && data.templateData.template, }, next); } else { next(null, html);