fix: draft sync

pull/21398/head
zxhlyh 10 months ago
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…
Cancel
Save