Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1519 | Org overview members to redirect to …
Browse files Browse the repository at this point in the history
…members tab
  • Loading branch information
snyaggarwal committed Mar 14, 2023
1 parent 737268d commit f2e4d55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/orgs/Members.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const Members = ({ members, org }) => {
return (
<div className='col-xs-12' style={{padding: 0, paddingLeft: '20px'}}>
<h3 style={{margin: '10px 0px', display: 'flex', alignItems: 'center'}}>
Members
<Link style={{color: 'inherit'}} to={`/orgs/${org.id}/members`}>Members</Link>
</h3>
{
isEmpty(members) ?
Expand Down
2 changes: 2 additions & 0 deletions src/components/orgs/OrgHome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ class OrgHome extends React.Component {
this.refreshDataByURL()
this.getPins()
}
if(this.props.location.pathname !== prevProps.location.pathname)
this.setTab()
}

getURLFromPath() {
Expand Down

0 comments on commit f2e4d55

Please sign in to comment.