From 45ec11cdbe621ae4511c48d63d983a5e74de6604 Mon Sep 17 00:00:00 2001 From: bymyself Date: Sat, 13 Dec 2025 01:49:29 -0800 Subject: [PATCH] fix: only sync node.imgs in Vue nodes mode --- src/stores/imagePreviewStore.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stores/imagePreviewStore.ts b/src/stores/imagePreviewStore.ts index 634c01c263..44d84d1009 100644 --- a/src/stores/imagePreviewStore.ts +++ b/src/stores/imagePreviewStore.ts @@ -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 { @@ -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