Skip to content

Commit ce94951

Browse files
committed
Simplify overriding onError with params
1 parent f1969bc commit ce94951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mutation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ export function createMutationFunction<
137137
app,
138138
{
139139
mutation,
140+
onError,
140141
...params,
141-
onError: params.onError ?? onError,
142142
},
143143
client,
144144
);

0 commit comments

Comments
 (0)