Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#799 | fixing origin label click
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jun 21, 2021
1 parent 1519304 commit a6ee761
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/concepts/HierarchyTraversalList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ class HierarchyTraversalList extends React.Component {
})
};

onLabelClick = child => window.location.hash = child.url
onLabelClick = child => {
if(child.origin)
return
window.location.hash = child.url
}

renderTree = children => {
const { tree, isLoading, loadingNode } = this.state
Expand Down

0 comments on commit a6ee761

Please sign in to comment.