Allow a node with forceVariation
to be promoted when it's first child
This commit is contained in:
parent
fbe2ed1ca2
commit
05d66d4935
|
@ -168,6 +168,9 @@ export function build(root: Tree.Node): TreeWrapper {
|
|||
ops.removeChild(parent, node.id);
|
||||
parent.children.unshift(node);
|
||||
if (!toMainline) break;
|
||||
} else if (node.forceVariation) {
|
||||
node.forceVariation = false;
|
||||
if (!toMainline) break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue