mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
fix: draft sync
This commit is contained in:
@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user