Skip to content

Commit

Permalink
Merge pull request #4114 from Maaarcocr/patch-1
Browse files Browse the repository at this point in the history
Check for nullable result value to avoid errors on unsubscription
  • Loading branch information
rmosolgo committed Jul 19, 2022
2 parents dac6685 + d8ff705 commit c7698d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript_client/src/subscriptions/ActionCableLink.ts
Expand Up @@ -46,7 +46,7 @@ class ActionCableLink extends ApolloLink {
)
},
received: function(payload) {
if (payload.result.data || payload.result.errors) {
if (payload?.result?.data || payload?.result?.errors) {
observer.next(payload.result)
}

Expand Down

0 comments on commit c7698d0

Please sign in to comment.