Skip to content

Commit f99d0fa

Browse files
chapterjasonclaude
andcommitted
fix(ui): normalize checklist update response shape to match add
Both add and update now return { id, label, checked, position, children: [] } instead of update spreading the raw DB row with item_id, parent_id etc. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 70ce870 commit f99d0fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/ui/src/routes/checklists/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ export function handleUpdateChecklist(stmts, slug, req, itemId, cid) {
1818
bumpVersion(stmts, itemId, item.version);
1919
const updated = stmts.getChecklistItem.get(cid, itemId);
2020
broadcastProject(slug);
21-
return { status: 200, body: { ...updated, checked: !!updated.checked } };
21+
return { status: 200, body: { id: updated.id, label: updated.label, checked: !!updated.checked, position: updated.position, children: [] } };
2222
};
2323
}

0 commit comments

Comments
 (0)