You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was going through the source code and found out that in RenderTableBody function the data variable which is being checked using a if statement is always true.
The data variable defaults to [] which is truthy value in javascript.
Got it, it's true that it may be null. While that makes complete sense.
Lets say for example if you set data to null it simply errors out and says data is null.
Hey there, thank you for making this library.
I was going through the source code and found out that in
RenderTableBody
function thedata
variable which is being checked using a if statement is always true.The
data
variable defaults to[]
which is truthy value in javascript.Default value assignment:
rsuite-table/src/Table.tsx
Line 270 in 48ca2f0
Checking:
rsuite-table/src/Table.tsx
Line 971 in 48ca2f0
The text was updated successfully, but these errors were encountered: