fix: sync subgraph name on double-click title rename (#9353)

## Summary
The Vue renderer's title editing path (NodeHeader →
useNodeEventHandlers) only updated node.title but not subgraph.name, so
the breadcrumb didn't reflect the new name when entering the subgraph.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-9353-fix-sync-subgraph-name-on-double-click-title-rename-3186d73d365081e2bc54f19ecd421ac0)
by [Unito](https://www.unito.io)
This commit is contained in:
Terry Jia
2026-03-02 23:15:21 -05:00
committed by GitHub
parent c95d32249b
commit a6f1b1cf90

View File

@@ -93,6 +93,11 @@ function useNodeEventHandlersIndividual() {
// Update the node title in LiteGraph for persistence
node.title = newTitle
// If this is a subgraph node, sync the subgraph name for breadcrumb reactivity
if (node.isSubgraphNode?.()) {
node.subgraph.name = newTitle
}
}
/**