Skip to content

Commit

Permalink
Fix grid header to display field's DisplayName instead of its name (#846
Browse files Browse the repository at this point in the history
)
  • Loading branch information
herflis authored Sep 8, 2020
1 parent 4621668 commit 28144de
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ export const VirtualizedTable: React.FC<VirtualizedTableProps> = (props) => {
}

const fieldSetting = getSchemaForField(columnName)
const displayName = (fieldSetting && fieldSetting.DisplayName) || columnName
const description = (fieldSetting && fieldSetting.Description) || columnName

return (
Expand Down Expand Up @@ -242,7 +243,7 @@ export const VirtualizedTable: React.FC<VirtualizedTableProps> = (props) => {
props.orderDirection === 'asc' ? 'desc' : 'asc',
)
}>
{columnName}
{displayName}
</TableSortLabel>
</Tooltip>
</TableCell>
Expand Down

0 comments on commit 28144de

Please sign in to comment.