react-datatable icon indicating copy to clipboard operation
react-datatable copied to clipboard

0 Int not renders

Open mkikets99 opened this issue 4 years ago • 2 comments

I find out that if we have 0 in one of column results then that 0 is not renders Screenshot from 2021-02-08 20-27-30 Screenshot from 2021-02-09 00-40-32

Is that ok? or needs a fix?

mkikets99 avatar Feb 08 '21 22:02 mkikets99

@mkikets99 I noticed the same problem, 0 not rendered. Is there any fix for that?

HavelEstrada avatar May 13 '22 14:05 HavelEstrada

@mkikets99 I noticed the same problem, 0 not rendered. Is there any fix for that?

It fixed on my fork... The issue was that it simply checks for data to be not false, but int 0 equals false boolean. it also can be tricked by just transforming int into string... But on my solution it better to be already checked for int 0 because some data with zeros might be important (as i know) on developing route

mkikets99 avatar May 13 '22 15:05 mkikets99