Skip to content

Commit 20db7f2

Browse files
committed
fix: 修复旧数据,嵌入脚本报错
1 parent d9ba884 commit 20db7f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/serializers/application_serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def get_query_api_input(self, application, params):
264264
if work_flow is not None:
265265
for node in work_flow.get('nodes', []):
266266
if node['id'] == 'base-node':
267-
input_field_list = node['properties']['input_field_list']
267+
input_field_list = node.get('properties', {}).get('input_field_list', [])
268268
if input_field_list is not None:
269269
for field in input_field_list:
270270
if field['assignment_method'] == 'api_input' and field['variable'] in params:

0 commit comments

Comments
 (0)