Fix type error in calendar import

pull/1/head
yflory 3 years ago
parent 46765ae659
commit 1445d9143b

@ -188,7 +188,7 @@ define([
hidden.push(al.toString()); hidden.push(al.toString());
} }
var trigger = al.getFirstPropertyValue('trigger'); 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); } if (reminders.indexOf(minutes) === -1) { reminders.push(minutes); }
}); });

Loading…
Cancel
Save