From f62175ed0c65a5f7cf076dc20bfe68d8580b721c Mon Sep 17 00:00:00 2001 From: Alexander Brown Date: Tue, 7 Oct 2025 15:53:32 -0700 Subject: [PATCH] Fix: Missing Node Title Editor bug (#5963) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found by @marawan206 ## Summary Fixes the title editor glitching when the node doesn't have an initial value ## Screenshots (if applicable) ### Before https://github.com/user-attachments/assets/4c4efbfd-73b9-4733-8227-fe2de59648d4 ### After https://github.com/user-attachments/assets/30f3279e-aa2b-451b-9bee-c134d3f8374c ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5963-Fix-Missing-Node-Title-Editor-bug-2856d73d365081389edbda546eca3bbb) by [Unito](https://www.unito.io) --- src/components/graph/TitleEditor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/graph/TitleEditor.vue b/src/components/graph/TitleEditor.vue index e5505fac5a..738d2c028d 100644 --- a/src/components/graph/TitleEditor.vue +++ b/src/components/graph/TitleEditor.vue @@ -47,7 +47,7 @@ const canvasStore = useCanvasStore() const previousCanvasDraggable = ref(true) const onEdit = (newValue: string) => { - if (titleEditorStore.titleEditorTarget && newValue.trim() !== '') { + if (titleEditorStore.titleEditorTarget && newValue?.trim()) { const trimmedTitle = newValue.trim() titleEditorStore.titleEditorTarget.title = trimmedTitle