mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-07 07:25:15 +00:00
Fix edge id
This commit is contained in:
@@ -153,7 +153,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "ComprehensiveProtocolStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": null,
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 200,
|
"x": 200,
|
||||||
"y": 150,
|
"y": 150,
|
||||||
@@ -174,7 +174,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "ComprehensiveProtocolStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": null,
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 250,
|
"x": 250,
|
||||||
"y": 150,
|
"y": 150,
|
||||||
@@ -195,7 +195,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "ComprehensiveProtocolStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": null,
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 300,
|
"x": 300,
|
||||||
"y": 150,
|
"y": 150,
|
||||||
@@ -216,7 +216,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "ComprehensiveProtocolStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": null,
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 900,
|
"x": 900,
|
||||||
"y": 150,
|
"y": 150,
|
||||||
@@ -237,7 +237,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "ComprehensiveProtocolStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": null,
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 950,
|
"x": 950,
|
||||||
"y": 150,
|
"y": 150,
|
||||||
@@ -302,7 +302,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "ComprehensiveProtocolStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": null,
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 400,
|
"x": 400,
|
||||||
"y": 450,
|
"y": 450,
|
||||||
@@ -387,7 +387,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "ComprehensiveProtocolStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": null,
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 500,
|
"x": 500,
|
||||||
"y": 400,
|
"y": 400,
|
||||||
@@ -406,7 +406,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "ComprehensiveProtocolStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": null,
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 1100,
|
"x": 1100,
|
||||||
"y": 500,
|
"y": 500,
|
||||||
@@ -570,7 +570,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "ComprehensiveProtocolStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": null,
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 900,
|
"x": 900,
|
||||||
"y": 500,
|
"y": 500,
|
||||||
@@ -589,7 +589,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "ComprehensiveProtocolStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": null,
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 950,
|
"x": 950,
|
||||||
"y": 500,
|
"y": 500,
|
||||||
@@ -608,7 +608,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "ComprehensiveProtocolStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": null,
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 1050,
|
"x": 1050,
|
||||||
"y": 500,
|
"y": 500,
|
||||||
|
|||||||
@@ -175,8 +175,7 @@ def modify_to_backend_format(data: list[dict[str, Any]]) -> list[dict[str, Any]]
|
|||||||
edge["targetHandle"] = port[target]
|
edge["targetHandle"] = port[target]
|
||||||
elif "target_port" in edge:
|
elif "target_port" in edge:
|
||||||
edge["targetHandle"] = edge.pop("target_port")
|
edge["targetHandle"] = edge.pop("target_port")
|
||||||
if "id" not in edge:
|
edge["id"] = f"reactflow__edge-{source}-{edge['sourceHandle']}-{target}-{edge['targetHandle']}"
|
||||||
edge["id"] = f"reactflow__edge-{edge['sourceHandle']}-{edge['targetHandle']}"
|
|
||||||
for key in ["source_port", "target_port"]:
|
for key in ["source_port", "target_port"]:
|
||||||
if key in edge:
|
if key in edge:
|
||||||
edge.pop(key)
|
edge.pop(key)
|
||||||
|
|||||||
Reference in New Issue
Block a user