From 6c720ce9d1881f5dacabe5e15877edad91b6781a Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 23 Jul 2021 10:18:42 +0200 Subject: [PATCH] Fix type error --- www/form/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/form/inner.js b/www/form/inner.js index 9f05f80dd..e30f0775a 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -607,7 +607,7 @@ define([ _date = new Date(data); data = Flatpickr.formatDate(_date, timeFormat); } - var day = allDays[_date.getDay()]; + var day = _date && allDays[_date.getDay()]; return h('div.cp-poll-cell.cp-form-poll-option', { title: Util.fixHTML(data) }, [