From d6cc6453d1d393e55cae1c611a01ae414186fd6c Mon Sep 17 00:00:00 2001 From: so95 Date: Tue, 6 May 2025 13:39:22 +0700 Subject: [PATCH] fixed errror when vars of cnt begin declare with key contain "begin" (#7457) ### What problem does this PR solve? fixed errror when vars of cnt begin declare with key contain "begin" _Briefly describe what this PR aims to solve. Include background context that will help reviewers understand the purpose of the PR._ ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- agent/component/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/component/base.py b/agent/component/base.py index 54ccb6c3c..f03c5d107 100644 --- a/agent/component/base.py +++ b/agent/component/base.py @@ -466,7 +466,7 @@ class ComponentBase(ABC): outs = [] for q in sources: if q.get("component_id"): - if q["component_id"].split("@")[0].lower().find("begin") >= 0: + if "@" in q["component_id"] and q["component_id"].split("@")[0].lower().find("begin") >= 0: cpn_id, key = q["component_id"].split("@") for p in self._canvas.get_component(cpn_id)["obj"]._param.query: if p["key"] == key: