allowing widgets to not show up if widget explicitly returns null

This commit is contained in:
Julian Lam
2016-07-27 14:31:15 -04:00
parent c666a7efda
commit a9a522c8ec

View File

@@ -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);
}