mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 13:10:24 +00:00
[Bug] Node preview images are lost when switching between multiple workflow tabs (#9380)
## Summary When working with multiple workflow tabs, the internal preview (image thumbnail) of nodes like Load Image disappears after navigating away from and back to a tab. This affects all active tabs once the switch occurs. ## Screenshot before https://github.com/user-attachments/assets/99466123-37db-406f-9e17-0a9ff22311c3 after https://github.com/user-attachments/assets/bdad0ef1-72b7-46c7-aa61-0a557688e55e --------- Co-authored-by: Alexander Brown <drjkl@comfy.org>
This commit is contained in:
@@ -77,6 +77,7 @@ export class ChangeTracker {
|
||||
scale: app.canvas.ds.scale,
|
||||
offset: [app.canvas.ds.offset[0], app.canvas.ds.offset[1]]
|
||||
}
|
||||
this.nodeOutputs = clone(app.nodeOutputs)
|
||||
const navigation = useSubgraphNavigationStore().exportState()
|
||||
// Always store the navigation state, even if empty (root level)
|
||||
this.subgraphState = { navigation }
|
||||
|
||||
Reference in New Issue
Block a user