Skip to content
Snippets Groups Projects
Commit bae3f383 authored by David Bühler's avatar David Bühler
Browse files

[ivette] Fixes table: columns shows elements equal to false.

parent c49b332b
No related branches found
No related tags found
No related merge requests found
...@@ -268,7 +268,8 @@ function makeDataRenderer( ...@@ -268,7 +268,8 @@ function makeDataRenderer(
return function TableCell(props: TableCellProps) { return function TableCell(props: TableCellProps) {
const { cellData } = props; const { cellData } = props;
try { try {
const contents = cellData ? render(cellData) : null; const undef = cellData === null || cellData === undefined;
const contents = undef ? null : render(cellData);
if (onContextMenu) { if (onContextMenu) {
const callback = (evt: React.MouseEvent): void => { const callback = (evt: React.MouseEvent): void => {
evt.stopPropagation(); evt.stopPropagation();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment