🐛 (workspace) Filter out guests from members list count
This commit is contained in:
@@ -82,7 +82,9 @@ export const MembersList = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const currentMembersCount = members.length + invitations.length
|
const currentMembersCount =
|
||||||
|
members.filter((member) => member.role !== WorkspaceRole.GUEST).length +
|
||||||
|
invitations.length
|
||||||
|
|
||||||
const canInviteNewMember = checkCanInviteMember({
|
const canInviteNewMember = checkCanInviteMember({
|
||||||
plan: workspace?.plan,
|
plan: workspace?.plan,
|
||||||
|
|||||||
Reference in New Issue
Block a user