Task: fix allDay when a task doesn't have a startDate.

master
Tom Hacohen 6 years ago
parent 494bc2e3bd
commit 4b09b9832a

@ -111,6 +111,10 @@ export class TaskType extends EventType {
return undefined as any;
}
get allDay() {
return !!((this.startDate && this.startDate.isDate) || (this.dueDate && this.dueDate.isDate));
}
public clone() {
const ret = new TaskType(new ICAL.Component(this.component.toJSON()));
ret.color = this.color;

Loading…
Cancel
Save