Skip to content

Commit

Permalink
fix: 修复旧数据,嵌入脚本报错
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Sep 26, 2024
1 parent d9ba884 commit 20db7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/application/serializers/application_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def get_query_api_input(self, application, params):
if work_flow is not None:
for node in work_flow.get('nodes', []):
if node['id'] == 'base-node':
input_field_list = node['properties']['input_field_list']
input_field_list = node.get('properties', {}).get('input_field_list', [])
if input_field_list is not None:
for field in input_field_list:
if field['assignment_method'] == 'api_input' and field['variable'] in params:
Expand Down

0 comments on commit 20db7f2

Please sign in to comment.