From 4d25667facf23e6447b8a196d32ffe699e5573a2 Mon Sep 17 00:00:00 2001 From: AllenFang Date: Thu, 9 Jun 2016 14:09:31 +0800 Subject: [PATCH] fix #493 --- src/TableBody.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TableBody.js b/src/TableBody.js index 6467f1cbc..97a4aaae6 100644 --- a/src/TableBody.js +++ b/src/TableBody.js @@ -77,10 +77,10 @@ class TableBody extends Component { ); } else { columnChild = formattedValue; - columnTitle = column.columnTitle ? formattedValue.toString() : null; + columnTitle = column.columnTitle && formattedValue ? formattedValue.toString() : null; } } else { - columnTitle = column.columnTitle ? fieldValue.toString() : null; + columnTitle = column.columnTitle && fieldValue ? fieldValue.toString() : null; } return (