Skip to content

Commit 16e39f4

Browse files
committed
remove dead code
1 parent 3bd56ec commit 16e39f4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

apps/sim/hooks/queries/organization.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,6 @@ export function useOrganizations() {
4747
})
4848
}
4949

50-
/**
51-
* Fetch organizations where user is owner/admin directly from DB
52-
* This bypasses session's activeOrganizationId for reliable role checking
53-
*/
54-
export function useUserOwnedOrganizations() {
55-
return useQuery({
56-
queryKey: ['user-owned-organizations'],
57-
queryFn: async () => {
58-
const res = await fetch('/api/organizations')
59-
if (!res.ok) return { organizations: [] }
60-
return res.json()
61-
},
62-
staleTime: 0, // Always refetch to ensure fresh org membership data
63-
})
64-
}
65-
6650
/**
6751
* Fetch a specific organization by ID
6852
*/

0 commit comments

Comments
 (0)