Fixed regression with refs failing to reify

This commit is contained in:
Stefan Zermatten
2023-06-22 11:21:17 +02:00
parent 8abd629fb6
commit 83537f1c24

View File

@@ -98,13 +98,14 @@ function insertPropertyFromNode(nodeId, ancestors, order) {
removed: { $ne: true },
}).fetch();
// Convert all references into actual nodes
nodes = reifyNodeReferences(nodes);
// The root node is first in the array of nodes
// It must get the first generated ID to prevent flickering
nodes = [node, ...nodes];
// Convert all references into actual nodes
nodes = reifyNodeReferences(nodes);
// set libraryNodeIds
storeLibraryNodeReferences(nodes);