mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: When referencing workflow fields, if the node is not executed, return None data (#3724)
This commit is contained in:
parent
dd5622d2bb
commit
9d790f1eda
|
|
@ -755,7 +755,10 @@ class WorkflowManage:
|
|||
if node_id == 'global':
|
||||
return INode.get_field(self.context, fields)
|
||||
else:
|
||||
return self.get_node_by_id(node_id).get_reference_field(fields)
|
||||
node = self.get_node_by_id(node_id)
|
||||
if node:
|
||||
return node.get_reference_field(fields)
|
||||
return None
|
||||
|
||||
def get_workflow_content(self):
|
||||
context = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue