From 494bc2e3bd2d01c8d48ed43ecf381c24a11048d4 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 26 Feb 2019 08:24:13 +0000 Subject: [PATCH] Fix viewing tasks with no start or end date. --- src/pim-types.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pim-types.ts b/src/pim-types.ts index a8a681d..344d0ac 100644 --- a/src/pim-types.ts +++ b/src/pim-types.ts @@ -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;