Skip to content

Commit

Permalink
fix: empty list is true
Browse files Browse the repository at this point in the history
  • Loading branch information
Algorush committed Jun 8, 2024
1 parent 0f79111 commit 44f4726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json-utils_1.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function getElementData(entity) {
if (elementData) savedChildren.push(elementData);
}
}
if (savedChildren) elementTree['children'] = savedChildren;
if (savedChildren.length > 0) elementTree['children'] = savedChildren;
}
return elementTree;
}
Expand Down

0 comments on commit 44f4726

Please sign in to comment.