some old event was flagged has multidate but without an end_datetime?

fix #245
This commit is contained in:
lesion 2023-03-22 16:17:02 +01:00
parent e6977368c5
commit 71fdeb6ff8
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -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: {