diff --git a/packages/openchs-android/src/views/individual/SubjectDashboardProfileTab.js b/packages/openchs-android/src/views/individual/SubjectDashboardProfileTab.js index 95d2084a9..17bf4cb0d 100644 --- a/packages/openchs-android/src/views/individual/SubjectDashboardProfileTab.js +++ b/packages/openchs-android/src/views/individual/SubjectDashboardProfileTab.js @@ -187,12 +187,13 @@ class SubjectDashboardProfileTab extends AbstractComponent { label: 'remove', fn: (groupSubject) => this.onMemberRemove(groupSubject) }); + const nonVoidedMembersGroupSubjects = _.filter(groupSubjects, (groupSubject) => !groupSubject.memberSubject.voided); return ( this.dispatchAction(Actions.ON_TOGGLE, {keyName: 'expandMembers'})}> {this.state.expandMembers === false ? @@ -201,9 +202,9 @@ class SubjectDashboardProfileTab extends AbstractComponent { - {this.state.expandMembers === true && groupSubjects.length > 0 ? + {this.state.expandMembers === true && nonVoidedMembersGroupSubjects.length > 0 ? - this.onSubjectSelection(memberSubjectUUID)} actions={applicableActions} editAllowed={editAllowed}