Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix New Task dialog closes even if task is invalid #85

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

fzaninotto
Copy link
Member

Closes #84

Problem

New Task dialog closes even if task is invalid

Solution

The dialog is closed on click on the save button. It should only be closed when the mutation is successful.

@fzaninotto fzaninotto added the RFR label Jan 24, 2025
@fzaninotto fzaninotto requested a review from Copilot January 24, 2025 13:33

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/tasks/AddTask.tsx:192

  • Ensure that the SaveButton component properly handles the click event, including successful mutation and error handling, so that the dialog only closes upon successful task creation.
<SaveButton />
@slax57 slax57 added this to the 0.1.0 milestone Jan 24, 2025
@slax57 slax57 merged commit e96174f into main Jan 24, 2025
5 checks passed
@slax57 slax57 deleted the fix-create-task-dialog branch January 24, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Contact Autocomplete not validating correctly on Task creation
2 participants