Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: only sync node.imgs in Vue nodes mode
  • Loading branch information
christian-byrne committed Dec 13, 2025
commit 45ec11cdbe621ae4511c48d63d983a5e74de6604
3 changes: 3 additions & 0 deletions src/stores/imagePreviewStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useTimeoutFn } from '@vueuse/core'
import { defineStore } from 'pinia'
import { ref } from 'vue'

import { LiteGraph } from '@/lib/litegraph/src/litegraph'
import type { LGraphNode, SubgraphNode } from '@/lib/litegraph/src/litegraph'
import { useWorkflowStore } from '@/platform/workflow/management/stores/workflowStore'
import type {
Expand Down Expand Up @@ -163,8 +164,10 @@ export const useNodeOutputStore = defineStore('nodeOutput', () => {

/**
* Sync node.imgs for backwards compatibility with legacy systems (e.g., Copy Image).
* Only needed in Vue nodes mode since legacy nodes already populate node.imgs.
*/
function syncNodeImgs(nodeLocatorId: NodeLocatorId, imageUrls: string[]) {
if (!LiteGraph.vueNodesMode) return
if (!imageUrls.length) return
const nodeId = nodeLocatorIdToNodeId(nodeLocatorId)
if (nodeId === null) return
Expand Down
Loading