diff --git a/js/src/mixins/group.ts b/js/src/mixins/group.ts index 86ec8bbdf..4003ecf22 100644 --- a/js/src/mixins/group.ts +++ b/js/src/mixins/group.ts @@ -84,7 +84,10 @@ export default class GroupMixin extends Vue { hasCurrentActorThisRole(givenRole: string | string[]): boolean { const roles = Array.isArray(givenRole) ? givenRole : [givenRole]; - return roles.includes(this.person?.memberships?.elements[0].role); + return ( + this.person?.memberships?.total > 0 && + roles.includes(this.person?.memberships?.elements[0].role) + ); } handleErrors(errors: any[]): void {