Skip to content

Commit

Permalink
fix: 修复添加管理员失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
JavanCheng committed Dec 14, 2023
1 parent 61259dd commit 12b20c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/UserList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 12b20c1

Please sign in to comment.