mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 11:56:55 +08:00
fix workflow variable split judge. (#26355)
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
parent
e686cc9eab
commit
36580221aa
@ -66,8 +66,8 @@ def load_into_variable_pool(
|
|||||||
# NOTE(QuantumGhost): this logic needs to be in sync with
|
# NOTE(QuantumGhost): this logic needs to be in sync with
|
||||||
# `WorkflowEntry.mapping_user_inputs_to_variable_pool`.
|
# `WorkflowEntry.mapping_user_inputs_to_variable_pool`.
|
||||||
node_variable_list = key.split(".")
|
node_variable_list = key.split(".")
|
||||||
if len(node_variable_list) < 1:
|
if len(node_variable_list) < 2:
|
||||||
raise ValueError(f"Invalid variable key: {key}. It should have at least one element.")
|
raise ValueError(f"Invalid variable key: {key}. It should have at least two elements.")
|
||||||
if key in user_inputs:
|
if key in user_inputs:
|
||||||
continue
|
continue
|
||||||
node_variable_key = ".".join(node_variable_list[1:])
|
node_variable_key = ".".join(node_variable_list[1:])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user