mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复旧数据,嵌入脚本报错
This commit is contained in:
parent
d9ba88411f
commit
20db7f2b6a
|
|
@ -264,7 +264,7 @@ class ApplicationSerializer(serializers.Serializer):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue