Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1169 | showing nodes from mappings for conc…
Browse files Browse the repository at this point in the history
…epts from other sources
  • Loading branch information
snyaggarwal committed Jan 13, 2022
1 parent 99adbf2 commit a7b9f67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/concepts/ConceptHierarchyTree.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ class ConceptHierarchyTree extends React.Component {
child.data.map_type = this.getMapType(child)
if(!child.data.target_concept_url)
result.push(child)
if(child.data.target_concept_url && !find(children, c => c.data.url === child.data.target_concept_url && c.data.type === 'Concept'))
result.push(child)
})
const hierarchicalNodes = orderBy(filter(result, node => node.data.map_type === HIERARCHY_CHILD_REL), 'data.map_type')
const nonHierarchicalNodes = orderBy(reject(result, node => node.data.map_type === HIERARCHY_CHILD_REL), 'data.map_type')
Expand Down

0 comments on commit a7b9f67

Please sign in to comment.