Fixed showing node

This commit is contained in:
Magnus Åhall 2026-06-08 21:43:52 +02:00
parent 92287e2076
commit cdccbc9306
2 changed files with 1 additions and 4 deletions

View file

@ -23,9 +23,6 @@ export class App {
// after it is rendered when the site is shown without UUID in the URL. // after it is rendered when the site is shown without UUID in the URL.
const startNode = await this.getStartNode() const startNode = await this.getStartNode()
document.getElementById('tree').append(await this.sidebar.render())
document.getElementById('tree-nodes')?.focus()
if (startNode.UUID == ROOT_NODE) if (startNode.UUID == ROOT_NODE)
this.goToNode(startNode.UUID, false, false) this.goToNode(startNode.UUID, false, false)
else else

View file

@ -42,7 +42,7 @@ export class N2PageNodeUI extends CustomHTMLElement {
this.marked = new MarkedPosition() this.marked = new MarkedPosition()
_mbus.subscribe('NODE_UI_OPEN', event => { _mbus.subscribe('NODE_UI_OPEN', event => {
this.node = event.detail.data.node this.node = event.detail.data
this.showMarkdown(true) this.showMarkdown(true)
this.render() this.render()
}) })