mirror of https://github.com/langgenius/dify.git
fix: draft sync
This commit is contained in:
parent
65ac022245
commit
0aeeee49f7
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue