tududi/frontend/components/Task/TaskDetails
Chris 733b6cd14b
fix: use nullish coalescing for recurrence weekday to allow Sunday selection (#1014)
Fixes #812

When creating a "Monthly on weekday" recurring task, the selector would
jump back to Monday when trying to select Sunday. This was caused by using
the logical OR operator (||) instead of the nullish coalescing operator (??)
when handling the recurrence_weekday value.

Since Sunday is represented as 0, the || operator treated it as falsy and
defaulted to null/undefined, which then defaulted to 1 (Monday).

Changes:
- Replace || with ?? for recurrence_weekday in TaskRecurrenceCard.tsx
- Replace || with ?? for recurrence_weekday in TaskDetails.tsx
- Also fix recurrence_week_of_month and recurrence_month_day for consistency
2026-04-13 19:07:20 +03:00
..
index.ts Fix refactor pt2 (#734) 2025-12-27 17:46:34 +02:00
TaskAttachmentsCard.tsx Fix attachments layout 2025-12-07 14:12:38 +02:00
TaskContentCard.tsx Feat refactor task details (#660) 2025-12-06 09:41:58 +02:00
TaskDeferUntilCard.tsx Fix date format inconsistency in Task detail screen (#956) 2026-03-21 18:47:33 +02:00
TaskDetailsHeader.tsx Fix new task in mobile (#857) 2026-02-24 13:03:38 +02:00
TaskDueDateCard.tsx Fix date format inconsistency in Task detail screen (#956) 2026-03-21 18:47:33 +02:00
TaskProjectCard.tsx Feat refactor task details (#660) 2025-12-06 09:41:58 +02:00
TaskRecurrenceCard.tsx fix: use nullish coalescing for recurrence weekday to allow Sunday selection (#1014) 2026-04-13 19:07:20 +03:00
TaskRecurringInstanceInfo.tsx Cleanup recurring tasks 2025-12-07 14:12:38 +02:00
TaskSubtasksCard.tsx Fix saving subtasks on edit (#806) 2026-01-31 08:29:44 +02:00
TaskTagsCard.tsx Feat refactor task details (#660) 2025-12-06 09:41:58 +02:00