From cb5fff03109610e63f2dd015954366f0debe0e06 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Tue, 14 Feb 2023 10:29:43 +0530 Subject: [PATCH] fix: graphql collections not syncing on login --- packages/hoppscotch-common/src/helpers/fb/collections.ts | 2 ++ 1 file changed, 2 insertions(+) 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 &&