Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1502 | allowing actions from global search
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Mar 2, 2023
1 parent add3500 commit da036cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/concepts/ConceptHome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ class ConceptHome extends React.Component {
}

isVersionedObject() {
return !this.props.match.params.conceptVersion;
return this.props.global || !this.props.match.params.conceptVersion;
}

onConceptClick = concept => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/mappings/MappingHome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class MappingHome extends React.Component {
}

isVersionedObject() {
return !this.props.match.params.mappingVersion;
return this.props.global || !this.props.match.params.mappingVersion;
}

getContentMarginTop = () => `${get(document.querySelector('header.resource-header.home-header'), 'offsetHeight') || 95}px`;
Expand Down

0 comments on commit da036cc

Please sign in to comment.