File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " frame-one-table" ,
3- "version" : " 0.3.9 " ,
3+ "version" : " 0.3.10 " ,
44 "description" : " A react table with maximum flexibility." ,
55 "main" : " build/index.js" ,
66 "module" : " build/index.es.js" ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ const TableRow: React.FC<ITableRowProps> = (props) => {
4242
4343 // Run value through formatter if it exists
4444 if ( column . valueFormatter ) {
45- content = column . valueFormatter ( content , cellContextDetails ) ;
45+ content = column . valueFormatter ( content ? content : rowData , cellContextDetails ) ;
4646 }
4747
4848 // Convert value to string
@@ -53,7 +53,7 @@ const TableRow: React.FC<ITableRowProps> = (props) => {
5353
5454 // Reassign the content to the custom render function if it exists.
5555 if ( column . cellRender ) {
56- content = column . cellRender ( content , cellContextDetails ) ;
56+ content = column . cellRender ( content ? content : rowData , cellContextDetails ) ;
5757 }
5858
5959 // Generate classes for the header cell.
You can’t perform that action at this time.
0 commit comments