From 7bdcd869a43968b09cade4c9b9b0c2cdff7f58c5 Mon Sep 17 00:00:00 2001 From: ZLY Date: Mon, 26 Jan 2026 10:01:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(flowEditor):=20=E4=BF=AE=E5=A4=8D=E5=AD=90?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=BF=9D=E5=AD=98=E6=97=B6=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=8A=82=E7=82=B9=E5=AF=BC=E8=87=B4=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/flowEditor/utils/common.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/flowEditor/utils/common.ts b/src/pages/flowEditor/utils/common.ts index 113ade7..79b97b1 100644 --- a/src/pages/flowEditor/utils/common.ts +++ b/src/pages/flowEditor/utils/common.ts @@ -7,8 +7,8 @@ export const handelEventNodeList = (newRevertedData) => { const deleteEventSendNodeList = []; const deleteEventlisteneList = []; // 处理流程接口后的数据,这里是原始数据的依据 - const currentEventSendNodeList = current.eventSendNodeList; - const currentEventlisteneList = current.eventlisteneList; + const currentEventSendNodeList = current?.eventSendNodeList || []; + const currentEventlisteneList = current?.eventlisteneList || []; // 画布数据 const nodeEntries: [string, any][] = Object.entries(newRevertedData);