multidate is null sometime..

This commit is contained in:
lesion 2023-01-09 16:55:02 +01:00
parent f406e60509
commit f5aedc19fa
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -8,7 +8,7 @@ export function attributesFromEvents(_events) {
const key = dayjs.unix(e.start_datetime).tz().format('MMDD') // Math.floor(e.start_datetime/(3600*24)) // dayjs.unix(e.start_datetime).tz().format('YYYYMMDD')
const c = (e.end_datetime || e.start_datetime) < now ? 'vc-past' : ''
if (e.multidate) {
if (e.multidate === true) {
attributes.push({
dates: { start: new Date(e.start_datetime * 1000), end: new Date(e.end_datetime * 1000) },
highlight: {