Fix default limit for nested o2m sets

Ref #3743
This commit is contained in:
rijkvanzanten
2021-02-19 10:52:24 -05:00
parent 8d1bd064c6
commit 315456916a

View File

@@ -263,7 +263,7 @@ function mergeWithParentItems(
// We re-apply the requested limit here. This forces the _n_ nested items per parent concept
if (nested) {
itemChildren = itemChildren.slice(0, nestedNode.query.limit);
itemChildren = itemChildren.slice(0, nestedNode.query.limit ?? 100);
}
parentItem[nestedNode.fieldKey] = itemChildren.length > 0 ? itemChildren : null;