fix: draft sync

This commit is contained in:
zxhlyh 2025-06-10 17:39:20 +08:00
parent 65ac022245
commit 0aeeee49f7
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export const useNodesSyncDraft = () => {
ragPipelineVariables,
} = workflowStore.getState()
if (pipelineId) {
if (pipelineId && !!nodes.length) {
const producedNodes = produce(nodes, (draft) => {
draft.forEach((node) => {
Object.keys(node.data).forEach((key) => {