fix: re-extract Vue node data on slot label change for immediate rename

When a promoted widget is renamed via the sidebar, the
node:slot-label:changed event now triggers a full re-extraction of
Vue node data via extractVueNodeData, ensuring promotedLabel is
recomputed immediately instead of waiting for a subgraph navigation
round-trip.
This commit is contained in:
jaeone94
2026-03-24 00:25:42 +09:00
parent 3e752b3c81
commit 1cdd979932

View File

@@ -808,6 +808,8 @@ export function useGraphNodeManager(graph: LGraph): GraphNodeManager {
if (slotLabelEvent.slotType !== NodeSlotType.INPUT && nodeRef.outputs) {
nodeRef.outputs = [...nodeRef.outputs]
}
// Re-extract widget data so promotedLabel reflects the rename
vueNodeData.set(nodeId, extractVueNodeData(nodeRef))
}
}