fix: remove defaultTeam (#3989)

This commit is contained in:
Finley Ge
2025-03-06 00:26:32 +08:00
committed by GitHub
parent 3fadabd28b
commit 662a4a4671
5 changed files with 6 additions and 11 deletions

View File

@@ -93,7 +93,7 @@ function MemberTable({ Tabs }: { Tabs: React.ReactNode }) {
const { runAsync: onLeaveTeam } = useRequest2(
async () => {
const defaultTeam = myTeams.find((item) => item.defaultTeam) || myTeams[0];
const defaultTeam = myTeams[0];
// change to personal team
onSwitchTeam(defaultTeam.teamId);
return delLeaveTeam();