From ca215c6a73232dbfa3ac70b175cf7c594ac1ca6d Mon Sep 17 00:00:00 2001 From: Yeuoly <45712896+Yeuoly@users.noreply.github.com> Date: Tue, 2 Dec 2025 15:59:42 +0800 Subject: [PATCH] Update app.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- api/controllers/console/app/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/console/app/app.py b/api/controllers/console/app/app.py index 4e25705da0e..d6adacd84d0 100644 --- a/api/controllers/console/app/app.py +++ b/api/controllers/console/app/app.py @@ -324,8 +324,8 @@ class AppListApi(Resource): NodeType.TRIGGER_PLUGIN, } for workflow in draft_workflows: - for node_type in trigger_node_types: - if next(workflow.walk_nodes(node_type), None): + for _, node_data in workflow.walk_nodes(): + if node_data.get("type") in trigger_node_types: draft_trigger_app_ids.add(str(workflow.app_id)) break