Skip to content

Commit e9db03d

Browse files
fix error
1 parent 3242f7a commit e9db03d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fetcher.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,12 @@ function fetcher<Paths>() {
256256
path: path as string,
257257
method: method as Method,
258258
queryParams: Object.keys(queryParams || {}),
259+
// @ts-ignore
259260
payload,
260261
init: mergeRequestInit(defaultInit, init),
261262
fetch,
262263
},
263-
persistParams,
264+
persistParams || [],
264265
),
265266
)) as CreateFetch<M, Paths[P][M]>,
266267
}),

0 commit comments

Comments
 (0)