Skip to content

Commit

Permalink
fix: 修复变量存在嵌套时预览变量输入失败的问题 #7305 (#7306)
Browse files Browse the repository at this point in the history
* fix: 修复变量存在嵌套时预览变量输入失败的问题 #7305

* fix: 调整缩进问题 #7305
  • Loading branch information
hanshuaikang authored Jan 18, 2024
1 parent 6b5550e commit 9b10060
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gcloud/tasktmpl3/domains/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ def get_need_render_context_keys():
if isinstance(item["value"], str):
for value in var_pattern.findall(item["value"]):
keys.add("${" + value + "}")
return keys

if keys:
references_keys = runtime.get_context_key_references(pipeline["id"], keys)
return keys | references_keys
return set()

# 对于子流程内的节点,拿不到当前node_id的type和code
node_type = pipeline["activities"].get(node_id, {}).get("type")
Expand Down

0 comments on commit 9b10060

Please sign in to comment.