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.
|
||||
const startNode = await this.getStartNode()
|
||||
|
||||
document.getElementById('tree').append(await this.sidebar.render())
|
||||
document.getElementById('tree-nodes')?.focus()
|
||||
|
||||
if (startNode.UUID == ROOT_NODE)
|
||||
this.goToNode(startNode.UUID, false, false)
|
||||
else
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export class N2PageNodeUI extends CustomHTMLElement {
|
|||
this.marked = new MarkedPosition()
|
||||
|
||||
_mbus.subscribe('NODE_UI_OPEN', event => {
|
||||
this.node = event.detail.data.node
|
||||
this.node = event.detail.data
|
||||
this.showMarkdown(true)
|
||||
this.render()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue