Fix viewing tasks with no start or end date.

master
Tom Hacohen 2019-02-26 08:24:13 +00:00
parent f26af1e1ac
commit 494bc2e3bd
1 changed files with 5 additions and 0 deletions

View File

@ -106,6 +106,11 @@ export class TaskType extends EventType {
return this.component.getFirstPropertyValue('due');
}
get endDate() {
// XXX: A hack to override this as it shouldn't be used
return undefined as any;
}
public clone() {
const ret = new TaskType(new ICAL.Component(this.component.toJSON()));
ret.color = this.color;