Explorar el Código

fix: race condition on gql client subscription client

Andrew Bastin hace 4 años
padre
commit
0f07c47e9f
Se han modificado 1 ficheros con 1 adiciones y 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 = () =>