diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembersContainer.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembersContainer.tsx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembersContainer.tsx b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembersContainer.tsx index cbc1d9d0d98..01226a51009 100644 --- a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembersContainer.tsx +++ b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembersContainer.tsx @@ -43,7 +43,7 @@ interface OwnProps { interface StateProps { memberLogins: string[]; members: OrganizationMember[]; - organization?: Organization; + organization: Organization; organizationGroups: Group[]; status: { loading?: boolean; total?: number; pageIndex?: number; query?: string }; } @@ -68,7 +68,7 @@ const mapStateToProps = (state: any, ownProps: OwnProps): StateProps => { return { memberLogins, members: getUsersByLogins(state, memberLogins), - organization: getOrganizationByKey(state, organizationKey), + organization: getOrganizationByKey(state, organizationKey)!, organizationGroups: getOrganizationGroupsByKey(state, organizationKey), status: getOrganizationMembersState(state, organizationKey) }; @@ -83,6 +83,7 @@ const mapDispatchToProps = { updateOrganizationMemberGroups }; -export default connect<StateProps, DispatchProps, OwnProps>(mapStateToProps, mapDispatchToProps)( - OrganizationMembers -); +export default connect<StateProps, DispatchProps, OwnProps>( + mapStateToProps, + mapDispatchToProps +)(OrganizationMembers); |