fix(trigger): handle missing 'inputs' key in trigger data retrieval

This commit is contained in:
Harry 2025-10-20 21:47:49 +08:00
parent eb1686f04b
commit 96f0b7abe3
1 changed files with 2 additions and 1 deletions

View File

@ -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,