Skip to content

Commit d709e91

Browse files
committed
guard against result being undefined
1 parent 7d926ac commit d709e91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/extend/tag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ NunjucksAsyncBlock.prototype.run = function(context, args, body, callback) {
184184
body((err, result) => {
185185
// wrapper for trimBody expecting
186186
// body to be a function
187-
body = () => result
187+
body = () => result || ''
188188

189189
this._run(context, args, trimBody(body)).then(function(result) {
190190
callback(err, result);

0 commit comments

Comments
 (0)