From 7ab32399758f83d6e6f5fdea3cdaee7dca53b906 Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Mon, 29 Jul 2024 15:03:33 -0700 Subject: [PATCH] fix: Use new orgs fetched from GH resync --- src/services/user/useResyncUser.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/user/useResyncUser.js b/src/services/user/useResyncUser.js index abfd668630..039786bf26 100644 --- a/src/services/user/useResyncUser.js +++ b/src/services/user/useResyncUser.js @@ -96,6 +96,9 @@ export function useResyncUser() { queryClient.invalidateQueries({ queryKey: ['repos', provider, owner], }) + queryClient.invalidateQueries({ + queryKey: ['UseMyOrganizations', provider], + }) } }, [isFetching, isSuccess, queryClient, provider, owner])