mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 13:10:24 +00:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user