feat: org-wide webhooks (#15144)
* feat: include org in teams list * feat: org-wide webhooks * Move getOrgIdFromMemberOrTeamId to packages/lib
This commit is contained in:
1 parent
d72f7f8a42
commit
4017c0e28f
20 files changed
+264
-63
No files matched your search
@@ -10,7 +10,9 @@ export function CreateButtonWithTeamsList(
|
||||
isAdmin?: boolean;
|
||||
}
|
||||
) {
|
||||
const query = trpc.viewer.teamsAndUserProfilesQuery.useQuery();
|
||||
const query = trpc.viewer.teamsAndUserProfilesQuery.useQuery({
|
||||
includeOrg: true,
|
||||
});
|
||||
if (!query.data) return null;
|
||||
|
||||
const teamsAndUserProfiles: Option[] = query.data
|
||||
|
||||
Reference in new issue
Block a user