mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
fix(core): line without from node should not to json
This commit is contained in:
parent
5dd4a21059
commit
f6daadf80f
@ -733,7 +733,14 @@ export class WorkflowDocument extends FlowDocument {
|
|||||||
|
|
||||||
private toLineJSON(line: WorkflowLineEntity): WorkflowEdgeJSON | undefined {
|
private toLineJSON(line: WorkflowLineEntity): WorkflowEdgeJSON | undefined {
|
||||||
const lineJSON = line.toJSON();
|
const lineJSON = line.toJSON();
|
||||||
if (!line.to || !line.info.to || !line.toPort) {
|
if (
|
||||||
|
!line.from ||
|
||||||
|
!line.info.from ||
|
||||||
|
!line.fromPort ||
|
||||||
|
!line.to ||
|
||||||
|
!line.info.to ||
|
||||||
|
!line.toPort
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 父子节点之间连线,需替换子画布为父节点
|
// 父子节点之间连线,需替换子画布为父节点
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user