From 0dbaefcb4cdf151d277a685472e92523bc603641 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Fri, 27 Nov 2020 19:16:44 -0500 Subject: [PATCH] Add default nested limit --- api/src/database/run-ast.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/database/run-ast.ts b/api/src/database/run-ast.ts index 48e01423c0..02952351a2 100644 --- a/api/src/database/run-ast.ts +++ b/api/src/database/run-ast.ts @@ -94,7 +94,7 @@ export default async function runAST( // to the "standard" item limit. Instead of _n_ nested items per parent item, it would mean // that there's _n_ items, which are then divided on the parent items. (no good) if (nestedNode.type === 'o2m') { - tempLimit = nestedNode.query.limit; + tempLimit = nestedNode.query.limit || 100; nestedNode.query.limit = -1; }