From 12b20c184edbcfdbfd33b3f4741d787832ac6c43 Mon Sep 17 00:00:00 2001 From: Yufeng Cheng <1351416566@qq.com> Date: Thu, 14 Dec 2023 23:56:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UserList/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/UserList/index.tsx b/src/components/UserList/index.tsx index b00a221..80ace69 100644 --- a/src/components/UserList/index.tsx +++ b/src/components/UserList/index.tsx @@ -12,7 +12,7 @@ const switchRoleTag = (roles: Roles) => { let tag; if (roles) { - if (roles?.[0].roleType === 4) { + if (roles?.[0]?.roleType === 4) { roleType = roles?.[1]?.roleType; if (roleType === 2) { communityId = roles?.[1]?.communityId;