Compare commits
1 Commits
main
...
projectpag
| Author | SHA1 | Date | |
|---|---|---|---|
| 0ef0b27c50 |
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user