no longer requiring that interstitial.data be set in interstitial data

... lol that commit message makes no sense.
This commit is contained in:
Julian Lam
2016-06-24 18:15:24 -04:00
parent 3e8e2f0e58
commit fafcdf8320

View File

@@ -199,7 +199,7 @@ Controllers.registerInterstitial = function(req, res, next) {
}
var renders = data.interstitials.map(function(interstitial) {
return async.apply(req.app.render.bind(req.app), interstitial.template, interstitial.data);
return async.apply(req.app.render.bind(req.app), interstitial.template, interstitial.data || {});
});
var errors = req.flash('error');