Skip to content

Commit

Permalink
Mappings list in search not redirecting on concept on row click
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Nov 16, 2020
1 parent fd04717 commit e0b2ccb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/mappings/FromConceptLabel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const FromConceptLabel = props => {
return (
<React.Fragment>
{
props.from_concept_url ?
!props.noRedirect && props.from_concept_url ?
<Link to={props.from_concept_url} style={{display: 'inline-block'}}>{labelComponent}</Link>:
<span>{labelComponent}</span>
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/search/ResultsTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ const RESOURCE_DEFINITIONS = {
{id: 'owner', label: 'Owner', value: 'owner', sortOn: 'owner', renderer: mapping => <OwnerChip ownerType={mapping.owner_type} owner={mapping.owner} />},
{id: 'parent', label: 'Source', value: 'source', sortOn: 'source'},
{id: 'id', label: 'ID', value: 'id', sortOn: 'id'},
{id: 'from', label: 'From Concept', renderer: mapping => <FromConceptLabel {...mapping} />},
{id: 'from', label: 'From Concept', renderer: mapping => <FromConceptLabel {...mapping} noRedirect />},
{id: 'mapType', label: 'Map Type', value: 'map_type', sortOn: 'map_type'},
{id: 'to', label: 'To Concept', renderer: mapping => <ToConceptLabel {...mapping} />},
{id: 'to', label: 'To Concept', renderer: mapping => <ToConceptLabel {...mapping} noRedirect />},
{id: 'updatedOn', label: 'Updated On', value: 'version_created_on', formatter: formatDate, sortOn: 'last_update'},
],
tabs: ['History',],
Expand Down

0 comments on commit e0b2ccb

Please sign in to comment.