Fix/app list compatible (#29123)
This commit is contained in:
@@ -324,10 +324,13 @@ class AppListApi(Resource):
|
|||||||
NodeType.TRIGGER_PLUGIN,
|
NodeType.TRIGGER_PLUGIN,
|
||||||
}
|
}
|
||||||
for workflow in draft_workflows:
|
for workflow in draft_workflows:
|
||||||
for _, node_data in workflow.walk_nodes():
|
try:
|
||||||
if node_data.get("type") in trigger_node_types:
|
for _, node_data in workflow.walk_nodes():
|
||||||
draft_trigger_app_ids.add(str(workflow.app_id))
|
if node_data.get("type") in trigger_node_types:
|
||||||
break
|
draft_trigger_app_ids.add(str(workflow.app_id))
|
||||||
|
break
|
||||||
|
except Exception:
|
||||||
|
continue
|
||||||
|
|
||||||
for app in app_pagination.items:
|
for app in app_pagination.items:
|
||||||
app.has_draft_trigger = str(app.id) in draft_trigger_app_ids
|
app.has_draft_trigger = str(app.id) in draft_trigger_app_ids
|
||||||
|
|||||||
Reference in New Issue
Block a user