Explorar o código

fix: race condition on gql client subscription client

Andrew Bastin %!s(int64=4) %!d(string=hai) anos
pai
achega
0f07c47e9f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/hoppscotch-app/helpers/backend/GQLClient.ts

+ 1 - 1
packages/hoppscotch-app/helpers/backend/GQLClient.ts

@@ -67,7 +67,7 @@ const subscriptionClient = new SubscriptionClient(
 )
 
 authIdToken$.subscribe(() => {
-  subscriptionClient.client.close()
+  subscriptionClient.client?.close()
 })
 
 const createHoppClient = () =>