From 3f6a774340e423f0b85cab10e9d8f30e713affd5 Mon Sep 17 00:00:00 2001 From: David Merfield Date: Sat, 12 Jun 2021 08:45:28 -0400 Subject: [PATCH] Fixes issue with date settings in template editor --- app/dashboard/routes/template-editor/load/dates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dashboard/routes/template-editor/load/dates.js b/app/dashboard/routes/template-editor/load/dates.js index 57056184a11..901b208c4a1 100644 --- a/app/dashboard/routes/template-editor/load/dates.js +++ b/app/dashboard/routes/template-editor/load/dates.js @@ -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(); };