Task: fix allDay when a task doesn't have a startDate.
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…
Reference in New Issue