Commit b500631a by Archer Committed by GitHub

fix: leave user will can not login (#1345)

parent bf6084da
...@@ -22,7 +22,10 @@ export async function getUserDetail({ ...@@ -22,7 +22,10 @@ export async function getUserDetail({
}): Promise<UserType> { }): Promise<UserType> {
const tmb = await (async () => { const tmb = await (async () => {
if (tmbId) { if (tmbId) {
return getTmbInfoByTmbId({ tmbId }); try {
const result = await getTmbInfoByTmbId({ tmbId });
return result;
} catch (error) {}
} }
if (userId) { if (userId) {
return getUserDefaultTeam({ userId }); return getUserDefaultTeam({ userId });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment