* feat: redirect url can be inner url (#4138)

* fix: update new user sync api (#4145)

* feat: post all params to backend (#4151)

* pref: sso getauthurl api (#4172)

* pref: sso getauthurl api

* pref: sso

* solve the rootorglist (#4234)

---------

Co-authored-by: gggaaallleee <91131304+gggaaallleee@users.noreply.github.com>
This commit is contained in:
Finley Ge
2025-03-19 21:17:38 +08:00
committed by archer
parent 6fee39873d
commit 652ec45bbd
7 changed files with 31 additions and 52 deletions

View File

@@ -94,9 +94,11 @@ function OrgTable({ Tabs }: { Tabs: React.ReactNode }) {
const currentOrgs = useMemo(() => {
if (orgs.length === 0) return [];
// Auto select the first org(root org is team)
if (parentPath === '') {
setParentPath(getOrgChildrenPath(orgs[0]));
const rootOrg = orgs.find((org) => org.path === '');
if (rootOrg) {
setParentPath(getOrgChildrenPath(rootOrg));
}
return [];
}