Skip to content

Commit e8d8162

Browse files
committed
assign argSchema result
1 parent 12c0439 commit e8d8162

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/toolkit/src/query/core/buildThunks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,9 @@ export function buildThunks<
554554
const { extraOptions, argSchema, rawResultSchema, resultSchema } =
555555
endpointDefinition
556556

557-
if (argSchema) await parseWithSchema(argSchema, finalQueryArg)
557+
if (argSchema) {
558+
finalQueryArg = await parseWithSchema(argSchema, finalQueryArg)
559+
}
558560

559561
if (forceQueryFn) {
560562
// upsertQueryData relies on this to pass in the user-provided value

0 commit comments

Comments
 (0)