From c65c8f329923128d838c1e94a476b6b7442a581f Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Thu, 29 Apr 2021 16:13:22 +0200 Subject: [PATCH] Added note to attempt to keep children of reference nodes --- .../methods/insertPropertyFromLibraryNode.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/imports/api/creature/creatureProperties/methods/insertPropertyFromLibraryNode.js b/app/imports/api/creature/creatureProperties/methods/insertPropertyFromLibraryNode.js index 52a858c1..3af576c8 100644 --- a/app/imports/api/creature/creatureProperties/methods/insertPropertyFromLibraryNode.js +++ b/app/imports/api/creature/creatureProperties/methods/insertPropertyFromLibraryNode.js @@ -192,6 +192,9 @@ function reifyNodeReferences(nodes, visitedRefs = new Set(), depth = 0){ return true; }); + // TODO: Force the referencedNode to take the old id of the reference + // such that the reference's children can be kept + // Give the new referenced sub-tree new ids renewDocIds({ docArray: addedNodes,