fix(web): reopen existing task from new-task dedup #5
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/reopen-existing-task-dedup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Choosing "Reopen existing" in the new-task duplicate dialog failed with RxDB VD2 because the form forwards folderId as undefined. RxDB fills schema defaults for undefined fields on insert, but patch() writes undefined verbatim and the validator rejects the required folderId field. Moving a task out of a folder hits the same path.
This normalizes partial updates in the CRUD write seam by substituting schema defaults for undefined fields, matching insert behavior. Fields absent from the patch stay untouched, and undefined optional fields without a default (details, note) remain clearable.
Checks: just check (9/9) and a browser click-through of the duplicate flow (task reopened, dialog closed).