Skip to content

Commit

Permalink
[frontend] Fix view as author for organizations and persons (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Hassine committed Apr 30, 2020
1 parent c58dbe0 commit ac7d1df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -37,7 +37,7 @@ class OrganizationComponent extends Component {
const params = buildViewParamsFromUrlAndStorage(
props.history,
props.location,
'view-organization',
`view-organization-${props.organization.id}`,
);
this.state = {
viewAs: propOr('knowledge', 'viewAs', params),
Expand All @@ -48,7 +48,7 @@ class OrganizationComponent extends Component {
saveViewParameters(
this.props.history,
this.props.location,
'view-organization',
`view-organization-${this.props.organization.id}`,
dissoc('filters', this.state),
);
}
Expand Down
Expand Up @@ -39,7 +39,7 @@ class PersonComponent extends Component {
const params = buildViewParamsFromUrlAndStorage(
props.history,
props.location,
'view-person',
`view-person-${props.person.id}`,
);
this.state = {
viewAs: propOr('knowledge', 'viewAs', params),
Expand All @@ -50,7 +50,7 @@ class PersonComponent extends Component {
saveViewParameters(
this.props.history,
this.props.location,
'view-person',
`view-person-${this.props.person.id}`,
dissoc('filters', this.state),
);
}
Expand Down

0 comments on commit ac7d1df

Please sign in to comment.