Skip to content

Commit

Permalink
Move message flashing into (app) tree
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Jan 7, 2025
1 parent 92ceca4 commit 065504d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions src/routes/(app)/documents/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const actions = {

form.delete("documents");

// @ts-ignore
const update: Partial<Document> = Object.fromEntries(form);

const docs = ids.map((id) => {
Expand Down
1 change: 1 addition & 0 deletions src/routes/(app)/documents/[id]-[slug]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const actions = {
const form = await request.formData();
const { id } = params;

// @ts-ignore
const update: Partial<Document> = Object.fromEntries(form.entries());

// noindex is a boolean so needs special treatment
Expand Down

0 comments on commit 065504d

Please sign in to comment.