Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#991 | fixing hierarchy listing
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Oct 6, 2021
1 parent 593c6d3 commit 11835d4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/components/concepts/ConceptHierarchyRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,20 @@ const ConceptHierarchyRow = ({ mapType, concepts, source }) => {
</TableRow>
}
{
map(concepts, concept => {
map(concepts, (concept, index) => {
return (
<TableRow
hover key={concept.uuid} onClick={event => onDefaultClick(event, concept)} style={{cursor: 'pointer'}} className='underline-text'>
hover key={get(concept, 'uuid') || index} onClick={event => onDefaultClick(event, concept)} style={{cursor: 'pointer'}} className='underline-text'>
<TableCell align='left' className='ellipsis-text' style={{maxWidth: '200px'}}>
{concept.id}
{get(concept, 'id')}
</TableCell>
<TableCell align='left'>
{ concept.name }
{ get(concept, 'name') }
</TableCell>
<TableCell align='left'>
{source.id}
</TableCell>
<TableCell align='right' style={{width: '24px', paddingRight: '5px'}}>
{get(source, 'id')}
</TableCell>
<TableCell />
</TableRow>
)
})
Expand Down

0 comments on commit 11835d4

Please sign in to comment.