Skip to content

Commit

Permalink
fix: don't crash if templateData is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Apr 9, 2019
1 parent 81f8cfe commit eb2c3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eb2c3e5

Please sign in to comment.