mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 20:48:01 +08:00
fix: draft sync
This commit is contained in:
parent
65ac022245
commit
0aeeee49f7
@ -32,7 +32,7 @@ export const useNodesSyncDraft = () => {
|
|||||||
ragPipelineVariables,
|
ragPipelineVariables,
|
||||||
} = workflowStore.getState()
|
} = workflowStore.getState()
|
||||||
|
|
||||||
if (pipelineId) {
|
if (pipelineId && !!nodes.length) {
|
||||||
const producedNodes = produce(nodes, (draft) => {
|
const producedNodes = produce(nodes, (draft) => {
|
||||||
draft.forEach((node) => {
|
draft.forEach((node) => {
|
||||||
Object.keys(node.data).forEach((key) => {
|
Object.keys(node.data).forEach((key) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user