fix: lint
This commit is contained in:
parent
b2cbca6ad7
commit
8e6b52f260
@ -53,8 +53,8 @@ export default function Integration({ config, params, setEvents, hideErrors, tim
|
||||
|
||||
const eventToAdd = (date, i, type) => {
|
||||
// When the 'dtend' is not defined (one-day all-day event), 'dtend' should be the same as 'dtstart'.
|
||||
const {dtstart} = event;
|
||||
const dtend = ('dtend' in event) ? event.dtend : dtstart;
|
||||
const { dtstart } = event;
|
||||
const dtend = 'dtend' in event ? event.dtend : dtstart;
|
||||
|
||||
const duration = dtend.value - dtstart.value;
|
||||
const days = duration === 0 ? 1 : duration / (1000 * 60 * 60 * 24);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user