Skip to content

Commit

Permalink
fix: 修复任务未执行节点预览时免渲染表单项中变量仍被渲染问题 #7358
Browse files Browse the repository at this point in the history
  • Loading branch information
lTimej committed Apr 25, 2024
1 parent 1991a26 commit 84875d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gcloud/tasktmpl3/domains/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ def get_need_render_context_keys():
need_render_context_keys = get_need_render_context_keys()
else:
need_render_context_keys = list(pipeline["data"].get("inputs", {}).keys()) + list(parent_params.keys())
need_render_keys = {
no_need_render_keys = {
"${%s}" % key
for key, val in pipeline["activities"][node_id]["component"]["inputs"].items()
if not val["need_render"]
for key, val in pipeline["activities"].get(node_id, {}).get("component", {}).get("inputs", {}).items()
if not val.get("need_render")
}
need_render_context_keys = need_render_context_keys.difference(need_render_keys)
need_render_context_keys = need_render_context_keys.difference(no_need_render_keys)
context_values = [
ContextValue(key=key, type=VAR_CONTEXT_MAPPING[info["type"]], value=info["value"], code=info.get("custom_type"))
for key, info in list(pipeline["data"].get("inputs", {}).items()) + list(parent_params.items())
Expand Down

0 comments on commit 84875d9

Please sign in to comment.