-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enhancements of task form #47
Enhancements of task form #47
Conversation
Visit the preview URL for this PR (updated for commit 73295f7): https://goal-tracker-app-38cdb--pr47-danny-some-enhanceme-i8fgkrot.web.app (expires Thu, 13 Jun 2024 21:07:56 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 4c4e709ef030d53d132aff41682ebb65bb7a0d4c |
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatter fixes
useEffect(() => { | ||
setDefaultFormValues({ | ||
name: task.name, | ||
deadline: task.deadline, | ||
description: task.description, | ||
importance: task.importance, | ||
}); | ||
}, [task]); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same fix as in #38
@@ -4,7 +4,7 @@ export interface Task { | |||
name: string; | |||
description: string; | |||
importance: number; | |||
deadline: Timestamp; | |||
deadline: Timestamp | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This prevent formatter from removing optional chaining in task.deadline?.
278f028
into
anton/update-add-form-design
@BlueSkyAndSomeCurses you can merge this PR into your #44 PR.