Compare commits
2 Commits
projectpag
...
musicpage
| Author | SHA1 | Date | |
|---|---|---|---|
| 4916a2fc7b | |||
| b0fb481cf2 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -46,4 +46,4 @@ yarn-error.log*
|
|||||||
.idea
|
.idea
|
||||||
# clerk configuration (can include secrets)
|
# clerk configuration (can include secrets)
|
||||||
/.clerk/
|
/.clerk/
|
||||||
.claudesession
|
.worktrees
|
||||||
|
|||||||
@@ -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) })
|
const deleteMutation = trpc.techStack.delete.useMutation({ onSuccess: makeOnSuccess('delete', form, undefined, path, router) })
|
||||||
function onSubmit(values: z.infer<typeof schemas.insert>) {
|
function onSubmit(values: z.infer<typeof schemas.insert>) {
|
||||||
setSubmitted(true)
|
setSubmitted(true)
|
||||||
id ?
|
params.entity ?
|
||||||
updateMutation.mutate(values) :
|
updateMutation.mutate(values) :
|
||||||
createMutation.mutate(values);
|
createMutation.mutate(values);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user