Skip to content

Commit f488b12

Browse files
committed
Real fix.
1 parent b76e38c commit f488b12

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@
8585
"prism-react-renderer": "1.3.3",
8686
"react": "17.0.2",
8787
"react-dom": "17.0.2",
88-
"ts-node": "10.8.0",
89-
"typedoc": "0.22.15",
90-
"typescript": "4.6.4",
88+
"ts-node": "10.8.1",
89+
"typedoc": "0.22.17",
90+
"typescript": "4.7.3",
9191
"url-loader": "4.1.1"
9292
},
9393
"publishConfig": {

src/execution/execute.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export function execute(args: ExecutionArgs): PromiseOrValue<ExecutionResult> {
170170
const exeContext = buildExecutionContext(args);
171171

172172
// Return early errors if execution context failed.
173-
if (Array.isArray(exeContext)) {
173+
if (Array.isArray(exeContext) || !('schema' in exeContext)) {
174174
return { errors: exeContext };
175175
}
176176

@@ -1090,7 +1090,7 @@ export function createSourceEventStream(
10901090
const exeContext = buildExecutionContext(args);
10911091

10921092
// Return early errors if execution context failed.
1093-
if (Array.isArray(exeContext)) {
1093+
if (Array.isArray(exeContext) || !('schema' in exeContext)) {
10941094
return { errors: exeContext };
10951095
}
10961096

0 commit comments

Comments
 (0)