mirror of
https://github.com/langgenius/dify.git
synced 2026-02-22 19:15:47 +08:00
fix(trigger): handle missing 'inputs' key in trigger data retrieval
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user