fix: refresh memberlist when switching account (#3814)

This commit is contained in:
Finley Ge
2025-02-18 13:54:56 +08:00
committed by GitHub
parent b14674cc6f
commit 3e13397614
3 changed files with 10 additions and 4 deletions

View File

@@ -13,9 +13,11 @@ import { useRouter } from 'next/router';
const TeamSelector = ({
showManage,
afterSwitchTeam,
...props
}: ButtonProps & {
showManage?: boolean;
afterSwitchTeam?: () => void;
}) => {
const { t } = useTranslation();
const router = useRouter();
@@ -36,6 +38,7 @@ const TeamSelector = ({
{
onFinally: () => {
setLoading(false);
afterSwitchTeam?.();
},
errorToast: t('common:user.team.Switch Team Failed')
}