Skip to content

Commit

Permalink
Fix query arguments merging
Browse files Browse the repository at this point in the history
  • Loading branch information
pvditto committed Sep 20, 2024
1 parent 83365d8 commit 46cd116
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/queries/useExecuteQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,16 @@ export function useExecuteQuery<
}
setDitto(nextDitto)

const finalQueryArguments: U = {} as U
let finalQueryArguments: U = {} as U
if (queryArguments) {
Object.assign(finalQueryArguments, queryArguments)
finalQueryArguments = Object.assign(finalQueryArguments, queryArguments)
}

if (localQueryArguments) {
Object.assign(finalQueryArguments, localQueryArguments)
finalQueryArguments = Object.assign(
finalQueryArguments,
localQueryArguments,
)
}

try {
Expand Down

0 comments on commit 46cd116

Please sign in to comment.