From 35f78132f6735c61dc1fae21b05318211d2572ea Mon Sep 17 00:00:00 2001 From: Cyril Siman Date: Tue, 30 Jul 2019 17:51:17 +0200 Subject: [PATCH] Avoid react error if the data source doesn't have the property. (#1420) * Fix : Avoid react error if the data source doesn't have the property. * Update fix with tannerlinsley's better solution --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index f1e0658..48d8e06 100755 --- a/src/utils.js +++ b/src/utils.js @@ -39,7 +39,7 @@ export function decorateColumn(column, defaultColumn, parent, depth, index) { column = { Header: ({ id }) => id, - Cell: ({ value }) => value, + Cell: ({ value }) => typeof value !== 'undefined' ? value : '', show: true, ...column, id,