Skip to content

Commit 3334fc8

Browse files
committed
add check
1 parent b1cb53e commit 3334fc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "frame-one-table",
3-
"version": "0.3.11",
3+
"version": "0.3.12",
44
"description": "A react table with maximum flexibility.",
55
"main": "build/index.js",
66
"module": "build/index.es.js",

src/TableRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const TableRow: React.FC<ITableRowProps> = (props) => {
5959
// Generate classes for the header cell.
6060
const _rowClassName: string = (typeof column.rowCellClassName === "string" || !column.rowCellClassName) ?
6161
column.rowCellClassName as string :
62-
column.rowCellClassName(content.toString(), cellContextDetails);
62+
column.rowCellClassName(content?.toString(), cellContextDetails);
6363
const cellClasses: string = classNames(rowCellClassName, _rowClassName);
6464

6565
return (

0 commit comments

Comments
 (0)