Skip to content

Commit 08d463d

Browse files
committed
Fix: diagram undefined DF endpoint
1 parent 3bd0ad8 commit 08d463d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/modeling/diagram/diagram.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,7 @@ export abstract class CanvasBase {
12881288
if (movingObj[CProps.dfs]) {
12891289
movingObj[CProps.dfs].forEach(dfID => {
12901290
const dfObj = this.getCanvasElementByCanvasID(dfID);
1291+
if (!dfObj) return;
12911292
let isEnd = dfObj[CProps.fe2] == movingObj[CProps.canvasID];
12921293
let start = this.getFlowAnchorPoint(isEnd ? dfObj[CProps.fa2] : dfObj[CProps.fa1], movingObj);
12931294
let p = isEnd ? CProps.p2ID : CProps.p0ID;

0 commit comments

Comments
 (0)