Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1465 | fixing hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Feb 2, 2023
1 parent cfb12e4 commit 46fa142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/concepts/ConceptTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Table, TableHead, TableBody, TableRow, TableCell, IconButton, Tooltip,
import {
QueryStats as HierarchyIcon,
} from '@mui/icons-material'
import { map, find } from 'lodash';
import { map, get } from 'lodash';
import ConceptDisplayName from './ConceptDisplayName';
import ConceptCascadeVisualizeDialog from './ConceptCascadeVisualizeDialog';

Expand Down Expand Up @@ -37,7 +37,7 @@ const ConceptTable = ({ concepts, showProgress, showStatus, visualFilters }) =>
if(showStatus)
headers = ["Status", ...headers]

const getClonedConcept = concept => find(concept?.bundle?.entry, {id: concept.id})
const getClonedConcept = concept => get(concept, 'bundle.entry.0')
const onVisualize = (concept, isClonedConcept) => {
setVisualize(concept)
setIsClonedConcept(Boolean(isClonedConcept))
Expand Down

0 comments on commit 46fa142

Please sign in to comment.