From 5fca1f540a3c4a6ee61b1a6f59dd1b3b885e1f82 Mon Sep 17 00:00:00 2001 From: GemNg Date: Sun, 25 Feb 2018 23:01:24 +0800 Subject: [PATCH] Should check undefined instead, otherwise value === 0 will not be able to show (#4524) --- 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;