mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: usergroups bugs
This commit is contained in:
parent
ccabc12b3a
commit
866111aa4c
3 changed files with 61 additions and 61 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue