From 578c8c1d569c10a35b68bcccbe772f77da1f396f Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 12 Sep 2024 13:21:38 +0800 Subject: [PATCH] chore: fix typo. --- .../flow/step_node/start_node/impl/base_start_node.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/application/flow/step_node/start_node/impl/base_start_node.py b/apps/application/flow/step_node/start_node/impl/base_start_node.py index 6dd0a81b20f..dc4fb541c97 100644 --- a/apps/application/flow/step_node/start_node/impl/base_start_node.py +++ b/apps/application/flow/step_node/start_node/impl/base_start_node.py @@ -24,10 +24,11 @@ def execute(self, question, **kwargs) -> NodeResult: def get_details(self, index: int, **kwargs): global_fields = [] for field in self.node.properties.get('config')['globalFields']: + key = field['value'] global_fields.append({ 'label': field['label'], - 'key': field['value'], - 'value': self.workflow_manage[field['value']] + 'key': key, + 'value': self.workflow_manage[key] if key in self.workflow_manage else '' }) return { 'name': self.node.properties.get('stepName'),