Skip to content

Commit a2035d0

Browse files
marklawlormanueliglesias
authored andcommitted
fix(subscriptions): Guard against errors: null response in subscription handshake (#337)
1 parent 5b49946 commit a2035d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-appsync/src/link/subscription-handshake-link.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class SubscriptionHandshakeLink extends ApolloLink {
7272
errors: any[]
7373
} = subsInfo;
7474

75-
if (errors.length) {
75+
if (errors && errors.length) {
7676
return new Observable(observer => {
7777
observer.error(new ApolloError({
7878
errorMessage: 'Error during subscription handshake',

0 commit comments

Comments
 (0)