Skip to content

fix(tasks): allow editing overdue tasks without changing due date#751

Open
shabnam311 wants to merge 1 commit into
aryandas2911:mainfrom
shabnam311:fix/overdue-task-edit
Open

fix(tasks): allow editing overdue tasks without changing due date#751
shabnam311 wants to merge 1 commit into
aryandas2911:mainfrom
shabnam311:fix/overdue-task-edit

Conversation

@shabnam311
Copy link
Copy Markdown
Contributor

Summary

Fixes #745

Changes

  • Updated the date validation logic in TaskFormModal.jsx.
  • When an existing task is being edited, the form now checks if the dueDate is identical to the original date.
  • The "Due date cannot be in the past" alert is bypassed if the date was unmodified, allowing users to safely edit the title, description, or tags of an overdue task.

Files Changed

  • frontend/src/components/Task/TaskFormModal.jsx

Type

  • Bug fix

Updated the form validation to bypass the past-date check if the user is editing an existing task and keeping the original due date. This prevents users from being blocked from fixing typos on overdue tasks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Cannot edit overdue tasks — past date validation blocks saving

1 participant