From 1445d9143b90def911129b3c006165b316d3adb5 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 8 Nov 2021 12:44:45 +0100 Subject: [PATCH] Fix type error in calendar import --- www/calendar/export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/calendar/export.js b/www/calendar/export.js index 5967e2027..307abad33 100644 --- a/www/calendar/export.js +++ b/www/calendar/export.js @@ -188,7 +188,7 @@ define([ hidden.push(al.toString()); } var trigger = al.getFirstPropertyValue('trigger'); - var minutes = trigger ? (-trigger.toSeconds() / 60) : 0; + var minutes = trigger && trigger.toSeconds ? (-trigger.toSeconds() / 60) : 0; if (reminders.indexOf(minutes) === -1) { reminders.push(minutes); } });