Skip to content

Commit

Permalink
HPCC-30297 WU Details Results Regression
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Sep 15, 2023
1 parent 516d1db commit 3101034
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 3101034

Please sign in to comment.