Skip to content

Commit

Permalink
Merge pull request #17777 from GordonSmith/HPCC-30297-WUDETAILS_RESULTS
Browse files Browse the repository at this point in the history
HPCC-30297 WU Details Results Regression

Reviewed-By: Jeremy Clements <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Sep 15, 2023
2 parents 516d1db + 3101034 commit 31c9de0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions esp/src/src-react/components/controls/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ interface IColumn extends _IColumn {

function tooltipItemRenderer(item: any, index: number, column: IColumn) {
const id = `${column.key}-${index}`;
const value = item[column.fieldName || column.key] ?? "";
const value = item[column.fieldName || column.key];
const className = column.data.className ? column.data.className(value, item) : "";
const style: React.CSSProperties = {
display: "flex",
justifyContent: column.data.justify === "right" ? "flex-end" : "flex-start"
};
return <TooltipHost id={id} content={value} overflowMode={TooltipOverflowMode.Parent}>
return <TooltipHost id={id} content={value ?? ""} overflowMode={TooltipOverflowMode.Parent}>
{column.data.formatter ?
<span style={style} className={className} aria-describedby={id}>{column.data.formatter(value, item)}</span> :
<span style={style} className={className} aria-describedby={id}>{value}</span>
<span style={style} className={className} aria-describedby={id}>{column.data.formatter(value, item) ?? ""}</span> :
<span style={style} className={className} aria-describedby={id}>{value ?? ""}</span>
}
</TooltipHost>;
}
Expand Down

0 comments on commit 31c9de0

Please sign in to comment.