dennny123 commited on
Commit
1585b71
·
1 Parent(s): 448ecbc

Fix: Skip UI-only 'Note' nodes in API conversion

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -103,6 +103,11 @@ def convert_to_api(web_workflow):
103
  for node in nodes:
104
  node_id = str(node["id"])
105
  class_type = node["type"]
 
 
 
 
 
106
  inputs = {}
107
 
108
  # 1. Handle Connections (from links)
 
103
  for node in nodes:
104
  node_id = str(node["id"])
105
  class_type = node["type"]
106
+
107
+ # Skip UI-only nodes that aren't functional in the API
108
+ if class_type in ["Note", "Group", "Reroute"]:
109
+ continue
110
+
111
  inputs = {}
112
 
113
  # 1. Handle Connections (from links)