Skip to content

Commit a4a0660

Browse files
committed
- stricter comparison
1 parent 57d2489 commit a4a0660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renderers/contributed/adaptive-table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Jsonary.render.register(Jsonary.plugins.Generator({
2727
if (!columnsObj[column]) {
2828
columnsObj[column] = true;
2929
renderer.addColumn(column, schemas.title() || column, function (data, context) {
30-
if (data.basicType() == "object" && depthRemaining < 0) {
30+
if (data.basicType() == "object" && depthRemaining <= 0) {
3131
return '<td class="jsonary-recursion-limit-reached">...</td>';
3232
} else {
3333
return this.defaultCellRenderHtml(data, context, column);

0 commit comments

Comments
 (0)