From 71fdeb6ff8c4099d6a0def1bf31ccd542f76378e Mon Sep 17 00:00:00 2001 From: lesion Date: Wed, 22 Mar 2023 16:17:02 +0100 Subject: [PATCH] some old event was flagged has multidate but without an end_datetime? fix #245 --- plugins/time.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/time.js b/plugins/time.js index c3568cbd..58c9825e 100644 --- a/plugins/time.js +++ b/plugins/time.js @@ -121,7 +121,7 @@ export default ({ app, store }, inject) => { const key = `${start.month}${start.day}` const c = (e.end_datetime || e.start_datetime) < now ? 'vc-past' : '' - if (e.multidate === true) { + if (e.multidate === true && e.end_datetime) { attributes.push({ dates: { start: start.toJSDate(), end: DateTime.fromSeconds(e.end_datetime).toJSDate() }, highlight: {