fix: 修复旧数据,嵌入脚本报错
This commit is contained in:
parent
d9ba88411f
commit
20db7f2b6a
@ -264,7 +264,7 @@ class ApplicationSerializer(serializers.Serializer):
|
|||||||
if work_flow is not None:
|
if work_flow is not None:
|
||||||
for node in work_flow.get('nodes', []):
|
for node in work_flow.get('nodes', []):
|
||||||
if node['id'] == 'base-node':
|
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:
|
if input_field_list is not None:
|
||||||
for field in input_field_list:
|
for field in input_field_list:
|
||||||
if field['assignment_method'] == 'api_input' and field['variable'] in params:
|
if field['assignment_method'] == 'api_input' and field['variable'] in params:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user