Fixed level up backfill selecting too many props

Fixed out of order
This commit is contained in:
Stefan Zermatten
2023-08-01 11:28:17 +02:00
parent 85f13713f2
commit 7ea972d476
2 changed files with 41 additions and 24 deletions

View File

@@ -60,6 +60,8 @@ const insertPropertyFromLibraryNode = new ValidatedMethod({
nodeIds.forEach(nodeId => {
// TODO: Check library view permission for each node before starting
node = insertPropertyFromNode(nodeId, ancestors, order);
// Increment order, slightly, to keep the nodes inserted in the given id order
order += 0.001;
});
// get one of the root inserted docs