multidate is null sometime..
This commit is contained in:
parent
f406e60509
commit
f5aedc19fa
1 changed files with 1 additions and 1 deletions
|
@ -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 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' : ''
|
const c = (e.end_datetime || e.start_datetime) < now ? 'vc-past' : ''
|
||||||
|
|
||||||
if (e.multidate) {
|
if (e.multidate === true) {
|
||||||
attributes.push({
|
attributes.push({
|
||||||
dates: { start: new Date(e.start_datetime * 1000), end: new Date(e.end_datetime * 1000) },
|
dates: { start: new Date(e.start_datetime * 1000), end: new Date(e.end_datetime * 1000) },
|
||||||
highlight: {
|
highlight: {
|
||||||
|
|
Loading…
Reference in a new issue