allowing widgets to not show up if widget explicitly returns null

v1.18.x
Julian Lam 9 years ago
parent c666a7efda
commit a9a522c8ec

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

Loading…
Cancel
Save