Pass an empty string for the table cell tooltip if the cell value is an object.

This commit is contained in:
Khushboo Vashi 2025-01-20 16:53:01 +05:30
parent cd86ce08cf
commit 90eff9a596

View File

@ -191,7 +191,7 @@ export const PgReactTableCell = forwardRef(({row, cell, children, className}, re
...(cell.column.columnDef.maxSize ? { maxWidth: `${cell.column.columnDef.maxSize}px` } : {}) ...(cell.column.columnDef.maxSize ? { maxWidth: `${cell.column.columnDef.maxSize}px` } : {})
}} }}
className={classNames.join(' ')} className={classNames.join(' ')}
title={typeof(cell.getValue()) !== 'object' && String(cell.getValue() ?? '')}> title={typeof(cell.getValue()) === 'object' ? '' : String(cell.getValue() ?? '')}>
<div className='pgrd-row-cell-content'>{children}</div> <div className='pgrd-row-cell-content'>{children}</div>
</div> </div>
); );