Skip to content

Commit

Permalink
Fixes issue with date settings in template editor
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Jun 12, 2021
1 parent 690f2dd commit 3f6a774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/dashboard/routes/template-editor/load/dates.js
Expand Up @@ -38,7 +38,7 @@ module.exports = function (req, res, next) {
res.locals.hide_dates = hide_dates;

res.locals.show_date_options =
res.locals.show_hide_dates && res.locals.displayFormats;
res.locals.show_hide_dates && res.locals.displayFormats.length;

next();
};

0 comments on commit 3f6a774

Please sign in to comment.