Skip to content

Commit 1ebde68

Browse files
DrJKLchristian-byrne
authored andcommitted
Fix: Missing Node Title Editor bug (#5963)
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)
1 parent ca25ef2 commit 1ebde68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/graph/TitleEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const canvasStore = useCanvasStore()
4747
const previousCanvasDraggable = ref(true)
4848
4949
const onEdit = (newValue: string) => {
50-
if (titleEditorStore.titleEditorTarget && newValue.trim() !== '') {
50+
if (titleEditorStore.titleEditorTarget && newValue?.trim()) {
5151
const trimmedTitle = newValue.trim()
5252
titleEditorStore.titleEditorTarget.title = trimmedTitle
5353

0 commit comments

Comments
 (0)