Skip to content

Commit

Permalink
allowing widgets to not show up if widget explicitly returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Jul 27, 2016
1 parent c666a7e commit a9a522c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/index.js
Expand Up @@ -44,7 +44,7 @@ widgets.render = function(uid, area, req, res, callback) {
req: req,
res: res
}, function(err, html) {
if (err) {
if (err || html === null) {
return next(err);
}

Expand Down

0 comments on commit a9a522c

Please sign in to comment.