Skip to content

Commit

Permalink
fix: cli mutation empty arg
Browse files Browse the repository at this point in the history
  • Loading branch information
dalechyn committed Jan 30, 2025
1 parent 74ebda4 commit 93b508e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/commands/Generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export async function generate(options: Generate = {}) {
isTypeScript
? `: {
mutation?: UseMutationOptions<Actions.${namespaceName}.${functionName}.ReturnType, Actions.${namespaceName}.${functionName}.ErrorType, Actions.${namespaceName}.${functionName}.ParametersType> | undefined
}`
} = {}`
: ''
}) {
return useMutation({ ...mutation, mutationKey: ['${namespaceName}.${functionName}'], mutationFn: (args)=> action(args) })
Expand Down

0 comments on commit 93b508e

Please sign in to comment.