diff --git a/esp/src/src-react/components/controls/Grid.tsx b/esp/src/src-react/components/controls/Grid.tsx index c48dc9150eb..41c6c499ee6 100644 --- a/esp/src/src-react/components/controls/Grid.tsx +++ b/esp/src/src-react/components/controls/Grid.tsx @@ -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 + return {column.data.formatter ? - {column.data.formatter(value, item)} : - {value} + {column.data.formatter(value, item) ?? ""} : + {value ?? ""} } ; }