Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1446 | fixing sorting of mappings for non-e…
Browse files Browse the repository at this point in the history
…xistent concepts
  • Loading branch information
snyaggarwal committed Jan 3, 2023
1 parent 75f132a commit bc82a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/mappings/ConceptHomeMappingsTableRows.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ConceptHomeMappingsTableRows = ({ concept, mappings, mapType, isIndirect,
else
differentParentMappings.push(mapping)
})
return [...orderBy(sameParentMappings, ['map_type', 'sort_weight', 'cascade_target_concept_name']), ...orderBy(differentParentMappings, ['map_type', 'sort_weight', 'cascade_target_source_name', 'cascade_target_concept_name'])]
return orderBy([...sameParentMappings, ...differentParentMappings], ['map_type', 'sort_weight', 'cascade_target_source_name', 'cascade_target_concept_name'])
}

const onAddNewClick = mapType => {
Expand Down

0 comments on commit bc82a03

Please sign in to comment.