fix create techstack form

This commit is contained in:
2026-03-10 21:14:36 +01:00
parent 03399de14f
commit 9c5aec01e0

View File

@@ -31,7 +31,7 @@ export default function CreateUpdateStackForm(params: { className?: string, enti
const deleteMutation = trpc.techStack.delete.useMutation({ onSuccess: makeOnSuccess('delete', form, undefined, path, router) })
function onSubmit(values: z.infer<typeof schemas.insert>) {
setSubmitted(true)
params.entity ?
id ?
updateMutation.mutate(values) :
createMutation.mutate(values);
}