mirror of https://github.com/langgenius/dify.git
fix(trigger): handle missing 'inputs' key in trigger data retrieval
This commit is contained in:
parent
eb1686f04b
commit
96f0b7abe3
|
|
@ -63,7 +63,8 @@ class TriggerEventNode(Node):
|
|||
"""
|
||||
|
||||
# Get trigger data passed when workflow was triggered
|
||||
trigger_inputs = dict(self.graph_runtime_state.variable_pool.user_inputs)
|
||||
trigger_inputs = dict(self.graph_runtime_state.variable_pool.user_inputs.get("inputs", {}))
|
||||
|
||||
metadata = {
|
||||
WorkflowNodeExecutionMetadataKey.TRIGGER_INFO: {
|
||||
**trigger_inputs,
|
||||
|
|
|
|||
Loading…
Reference in New Issue