Skip to content

Commit 1cf48b7

Browse files
abdhaleesdavidguttman
authored andcommitted
fix: render 0 in cell (#85)
1 parent 53abb58 commit 1cf48b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pivot-table.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module.exports = createReactClass({
130130
<td className={col.className}
131131
key={[col.title, row.key].join('\xff')}
132132
title={col.title}>
133-
<span dangerouslySetInnerHTML={{__html: text || ''}}></span> {solo}
133+
<span dangerouslySetInnerHTML={{__html: text || (text === 0 && '0') || ''}}></span> {solo}
134134
</td>
135135
)
136136
},

0 commit comments

Comments
 (0)