From ffb7f4ac53f7ac933d16dc1a4f6017ecfd1a5c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Fri, 12 Jun 2026 08:27:06 +0200 Subject: [PATCH] Go to newly created node. --- static/js/app.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/app.mjs b/static/js/app.mjs index a54be2e..4127b91 100644 --- a/static/js/app.mjs +++ b/static/js/app.mjs @@ -152,8 +152,9 @@ export class App { // Treenode is forcefully rerendered and children refetched to both show the new node // and to get it resorted. - const treenode = this.sidebar.getTreeNode(this.currentNode.UUID) - treenode.render(true, true) + const parentTreenode = this.sidebar.getTreeNode(this.currentNode.UUID) + await parentTreenode.render(true, true) + _mbus.dispatch('GO_TO_NODE', { nodeUUID: nn.UUID }) }//}}} async goToNode(nodeUUID, dontPush, dontExpand) {//{{{ if (nodeUUID === null || nodeUUID === undefined)