fix: filter temporary edges from workflow draft sync (#25442)

Co-authored-by: jiasiqi <jiasiqi3@tal.com>
This commit is contained in:
JQSevenMiao 2025-09-12 11:19:57 +08:00 committed by GitHub
parent 12d1bcc545
commit c0e1015c6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,7 @@ export const useNodesSyncDraft = () => {
})
})
})
const producedEdges = produce(edges, (draft) => {
const producedEdges = produce(edges.filter(edge => !edge.data?._isTemp), (draft) => {
draft.forEach((edge) => {
Object.keys(edge.data).forEach((key) => {
if (key.startsWith('_'))