From 64795a80c7688ce5f711a41f5dbfed633ca2dc74 Mon Sep 17 00:00:00 2001 From: "maxiaozhe@alicorns.co.jp" Date: Sat, 23 Sep 2023 23:55:52 +0900 Subject: [PATCH] actiontypes bug fix --- frontend/src/types/ActionTypes.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/types/ActionTypes.ts b/frontend/src/types/ActionTypes.ts index f2501fc..88ff97f 100644 --- a/frontend/src/types/ActionTypes.ts +++ b/frontend/src/types/ActionTypes.ts @@ -291,6 +291,7 @@ reconnectOrRemoveNextNodes(targetNode: IActionNode): void { //二つ以上の場合 for(const [point,nextid] of nextNodeIds){ const nextNode = this.findNodeById(nextid); + if(!nextNode) return; if(!this.connectNodes(prevNode,nextNode,point)){ this.removeAllNext(nextid); this.removeFromActionNodes(nextid);