Skip to content

Commit 1f32c77

Browse files
committed
Merge pull request #7 from lucidfrontier45/master
fixed bug of 0s not shown in table
2 parents 9aededf + 02bbe52 commit 1f32c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.jsontotable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
if (dictType && headerObj) {
125125
var bodyItem = {};
126126
for (key in headerObj) {
127-
bodyItem[key] = (obj[i] && obj[i][key]) ? obj[i][key] : "";
127+
bodyItem[key] = (obj[i] && obj[i][key] != null) ? obj[i][key] : "";
128128
}
129129

130130
table.appendTr(bodyItem, false);

0 commit comments

Comments
 (0)