Fix type error in calendar import

pull/1/head
yflory 3 years ago
parent 90fc5ae4f1
commit b4bb28ef19

@ -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