Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: graphql collections not syncing on login

Andrew Bastincb5fff031096
diff --git a/packages/hoppscotch-common/src/helpers/fb/collections.ts b/packages/hoppscotch-common/src/helpers/fb/collections.ts
index 09db5fdf3..8f8cff180 100644
--- a/packages/hoppscotch-common/src/helpers/fb/collections.ts
+++ b/packages/hoppscotch-common/src/helpers/fb/collections.ts
@@ -84,6 +84,8 @@ export function initCollections() {
})
const gqlCollSub = graphqlCollections$.subscribe((collections) => {
+ const currentUser = platform.auth.getCurrentUser()
+
if (
loadedGraphqlCollections &&
currentUser &&