feat: usergroups bugs

This commit is contained in:
swve 2024-06-13 22:42:30 +01:00
parent ccabc12b3a
commit 866111aa4c
3 changed files with 61 additions and 61 deletions

View file

@ -17,9 +17,10 @@ function OrgInviteCodeGenerate(props: OrgInviteCodeGenerateProps) {
const session = useLHSession() as any
const access_token = session?.data?.tokens?.access_token;
const [usergroup_id, setUsergroup_id] = React.useState(0);
const { data: usergroups } = useSWR(
org ? `${getAPIUrl()}usergroups/org/${org.id}` : null,
swrFetcher
(url) => swrFetcher(url, access_token)
)
async function createInviteWithUserGroup() {