We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3834943 commit baa2f12Copy full SHA for baa2f12
src/routes/workbooks/edit/[slug]/+page.server.ts
@@ -81,7 +81,7 @@ export const actions = {
81
}
82
83
try {
84
- await workBooksCrud.updateWorkBook(workBookId, { id: workBookId, ...workBook });
+ await workBooksCrud.updateWorkBook(workBookId, { ...workBook, id: workBookId });
85
} catch (e) {
86
console.error(`Failed to update WorkBook with id ${workBookId}:`, e);
87
error(
0 commit comments