Do not display the tooltip if the table cell value is an object.

This commit is contained in:
Khushboo Vashi 2025-01-17 15:32:11 +05:30
parent 1be0ff13db
commit 72a3ed9068

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={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>
); );