From 6a72646b6cec0cb4ac114e4fab6817708e3e4aa5 Mon Sep 17 00:00:00 2001 From: gemng Date: Thu, 30 Nov 2017 11:42:27 +0800 Subject: [PATCH] Should check undefined instead, otherwise value === 0 will not be able to show --- fields/types/number/NumberColumn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fields/types/number/NumberColumn.js b/fields/types/number/NumberColumn.js index 1648550828..0c30474a40 100644 --- a/fields/types/number/NumberColumn.js +++ b/fields/types/number/NumberColumn.js @@ -11,7 +11,7 @@ var NumberColumn = React.createClass({ }, renderValue () { const value = this.props.data.fields[this.props.col.path]; - if (!value || isNaN(value)) return null; + if (value === undefined || isNaN(value)) return null; const formattedValue = (this.props.col.path === 'money') ? numeral(value).format('$0,0.00') : value;