Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Oct 11, 2022
1 parent 1c46b02 commit cf95011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/concepts/HomeMappings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const groupMappings = (orderedMappings, concept, mappings, forward) => {
if(!mapType)
mapType = forward ? 'children' : 'parent'
orderedMappings[mapType] = orderedMappings[mapType] || {order: null, direct: [], indirect: [], unknown: [], hierarchy: [], reverseHierarchy: [], self: []}
const isSelfMapping = isMapping && concept.url === resource.target_concept_url
const isSelfMapping = isMapping && dropVersion(concept.url) === dropVersion(resource.target_concept_url)
let _resource = isMapping ? {...resource, isSelf: isSelfMapping, target_concept_name: resource.target_concept_name || get(find(mappings, m => dropVersion(m.url) === dropVersion(resource.target_concept_url)), 'display_name')} : {...resource, target_concept_name: resource.display_name}
if(isSelfMapping) {
if(!map(orderedMappings[mapType].self, 'id').includes(resource.id))
Expand Down

0 comments on commit cf95011

Please sign in to comment.