mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-11 16:10:05 +00:00
[fix] Preserve per-workflow subgraph navigation state (#4616)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -115,6 +115,21 @@ export function useMinimap() {
|
||||
() => workflowStore.activeSubgraph,
|
||||
() => {
|
||||
graph.value = app.canvas?.graph
|
||||
// Force viewport update when switching subgraphs
|
||||
if (initialized.value && visible.value) {
|
||||
updateViewport()
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
// Update viewport when switching workflows
|
||||
watch(
|
||||
() => workflowStore.activeWorkflow,
|
||||
() => {
|
||||
// Force viewport update when switching workflows
|
||||
if (initialized.value && visible.value) {
|
||||
updateViewport()
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user