fix(schedule): update reminder detection when rescheduling

This commit is contained in:
Johannes Millan 2025-12-11 15:05:00 +01:00
parent 4bb3d53cf1
commit d2cae406be

View file

@ -622,7 +622,7 @@ export class ScheduleWeekDragService {
private _scheduleTask(task: TaskCopy, scheduleTime: number): void {
const hasExistingSchedule = !!task?.dueWithTime;
const hasReminder = !!task?.remindAt;
const hasReminder = !!(task?.remindAt ?? task?.reminderId);
const defaultReminderOption = this._getDefaultReminderOption();
// Smart reminder logic: if task is brand new to scheduling, add a reminder based on user's default setting.
// If it already has a reminder, update it. Otherwise, leave reminders unchanged.