Skip to content

Commit 58d0904

Browse files
committed
refactor: - Make the removeScheduledDateOnRecurrence behaviour explicit
1 parent a6e2d5e commit 58d0904

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Task/Occurrence.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ export class Occurrence {
7777
// not make sense to pick the scheduled date over the start date because
7878
// the scheduled date will be deleted in the newly created task. So if
7979
// this setting is enabled, we favour start date over scheduled date:
80-
datesInPriorityOrder.push(this.startDate);
81-
datesInPriorityOrder.push(this.scheduledDate);
80+
return [this.dueDate, this.startDate, this.scheduledDate];
8281
} else {
8382
datesInPriorityOrder.push(this.scheduledDate);
8483
datesInPriorityOrder.push(this.startDate);

0 commit comments

Comments
 (0)