Fixed showing node
This commit is contained in:
parent
92287e2076
commit
cdccbc9306
2 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue