Skip to content

Commit

Permalink
Concept mappings | hiding sort for inverse mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jun 1, 2023
1 parent 6ae1222 commit fb03d65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/mappings/ConceptHomeMappingsTableRows.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const ConceptHomeMappingsTableRows = ({ concept, mappings, mapType, isIndirect,
return badgeProps
}

const tooltipTitle = allMappingsHaveSortWeight ? 'Custom sorting has been applied' : (mappingsWithSortWeightCount ? `Custom sorting has been applied to ${mappingsWithSortWeightCount} mappings.` : undefined)
const tooltipTitle = isIndirect ? undefined : (allMappingsHaveSortWeight ? 'Custom sorting has been applied' : (mappingsWithSortWeightCount ? `Custom sorting has been applied to ${mappingsWithSortWeightCount} mappings.` : undefined))

const _onAssignSortWeight = mapping => {
let maxSortWeight = maxBy(oMappings, 'sort_weight')?.sort_weight
Expand Down Expand Up @@ -262,7 +262,6 @@ const ConceptHomeMappingsTableRows = ({ concept, mappings, mapType, isIndirect,
fontSize='small'
style={{width: '12pt'}}
/>

</Tooltip>
</span>
<span className={mapping.retired ? 'retired' : ''}>
Expand Down

0 comments on commit fb03d65

Please sign in to comment.