Skip to content

Commit 23512be

Browse files
committed
pr improvement
1 parent e2b0434 commit 23512be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/container/projects/create-project.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
+ Create Project
7474
</Dialog.Trigger>
7575
<Dialog.Content class="sm:max-w-[425px]">
76-
<form method="POST" action="?/post" use:enhance>
76+
<form method="POST" action="?/createProject" use:enhance>
7777
<Dialog.Header>
7878
<Dialog.Title>New Project</Dialog.Title>
7979
<Dialog.Description>

src/routes/(authenticated)/projects/+page.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const load: PageServerLoad = async () => {
2323
const nameSchema = baseCreateProjectSchema.pick({ name: true })
2424

2525
export const actions: Actions = {
26-
post: async ({ request }) => {
26+
createProject: async ({ request }) => {
2727
const form = await superValidate(request, zod(createProjectSchema))
2828

2929
if (!form.valid) {

0 commit comments

Comments
 (0)