Commit 8144268
π Fix(web): invalid type errors when creating someday event (#615)
* fix(web): make `_id`optional
a someday event does not have an `_id` when we are drafting/creating a new one
* fix(web): set default order for new events to pass validation
Updated the `useSidebarActions` hook to assign a default order of -1 to new events, ensuring they pass Zod validation during creation.1 parent 28ed1c8 commit 8144268
2 files changed
Lines changed: 4 additions & 1 deletion
File tree
- packages/web/src
- common/types
- views/Calendar/components/Draft/sidebar/hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
376 | 380 | | |
377 | 381 | | |
378 | 382 | | |
| |||
0 commit comments