diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Team/TeamMembers.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Team/TeamMembers.tsx index 0892f9f63a..f1fe300a82 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Team/TeamMembers.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Team/TeamMembers.tsx @@ -120,6 +120,8 @@ export const TeamMembers: React.FC = ({ teamMembersByRole }) => { return acc.concat(teamMembersByRole[role]); }, []); + const activeMembers = otherRoles.filter((member) => member.email); + const archivedMembers = otherRoles.filter( (member) => member.role !== "platformAdmin" && !member.email, ); @@ -134,7 +136,7 @@ export const TeamMembers: React.FC = ({ teamMembersByRole }) => { Editors have access to edit your services. - +