Skip to content

Commit 68fce6f

Browse files
committed
Fix ts
1 parent aec7db9 commit 68fce6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/executor/src/execution/execute.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export function execute<TData = any, TVariables = any, TContext = any>(
274274
value: {
275275
...e.extensions,
276276
http: {
277-
...e.extensions?.['http'],
277+
...(e.extensions?.['http'] || {}),
278278
status: 400,
279279
},
280280
},
@@ -1545,7 +1545,7 @@ export function subscribe<TData = any, TVariables = any, TContext = any>(
15451545
value: {
15461546
...e.extensions,
15471547
http: {
1548-
...e.extensions?.['http'],
1548+
...(e.extensions?.['http'] || {}),
15491549
status: 400,
15501550
},
15511551
},

0 commit comments

Comments
 (0)