Skip to content

Commit 2d21ff4

Browse files
committed
Expand docs.
1 parent ca4a01e commit 2d21ff4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Task/Occurrence.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ export class Occurrence {
5757
return window.moment(this.dueDate);
5858
}
5959

60-
// If the `removeScheduledDateOnRecurrence` setting is enabled, pick the
61-
// `startDate` before the `scheduledDate`.
60+
// If the `removeScheduledDateOnRecurrence` setting is enabled, it does
61+
// not make sense to pick the scheduled date over the start date because
62+
// the scheduled date will be deleted in the newly created task. So if
63+
// this setting is enabled, and there is a start date, we pick that date
64+
// now before falling back on the standard logic below.
6265
const { removeScheduledDateOnRecurrence } = getSettings();
6366
if (removeScheduledDateOnRecurrence && this.startDate) {
6467
return window.moment(this.startDate);

0 commit comments

Comments
 (0)