From 5a67c638c68ad0501cce53a9859cb1f754430edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Tue, 26 May 2026 13:54:22 +0200 Subject: [PATCH] Regriession fix for title update causing trouble for content edit. --- static/js/node.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/node.mjs b/static/js/node.mjs index acebbb7..7959831 100644 --- a/static/js/node.mjs +++ b/static/js/node.mjs @@ -48,7 +48,7 @@ export class N2NodeUI extends CustomHTMLElement { _mbus.subscribe('NODE_MODIFIED', () => { document.querySelector('#crumbs .crumbs')?.classList.add('node-modified') this.elIconSave.src = `/images/${_VERSION}/icon_save.svg` - this.render() + this.renderName() }) _mbus.subscribe('NODE_UNMODIFIED', () => { @@ -76,6 +76,9 @@ export class N2NodeUI extends CustomHTMLElement { this.showMarkdown(true) }// }}} + renderName() {// {{{ + this.elName.innerText = this.node?.get('Name') ?? '' + }// }}} render() {// {{{ this.elName.innerText = this.node?.get('Name') ?? '' this.elNodeContent.value = this.node?.get('Content') ?? ''