fix: 修复旧数据,嵌入脚本报错
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
shaohuzhang1 2024-09-26 16:47:33 +08:00 committed by shaohuzhang1
parent d9ba88411f
commit 20db7f2b6a

View File

@ -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: