Skip to content

Commit 06dddd4

Browse files
jjmean2squarelab-jwlee
authored andcommitted
fix(query-core): correct error handling in tryResolveSync function
1 parent 7cf6ef5 commit 06dddd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query-core/src/thenable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function tryResolveSync(promise: Promise<unknown> | Thenable<unknown>) {
9898
.then((result) => {
9999
data = result
100100
return result
101-
})
101+
}, noop)
102102
// .catch can be unavailable on certain kinds of thenable's
103103
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
104104
?.catch(noop)

0 commit comments

Comments
 (0)