fix: 修复简易模型无法显示浮窗 (#1240)

This commit is contained in:
shaohuzhang1 2024-09-20 17:16:07 +08:00 committed by GitHub
parent 1f26744cef
commit 581440e056
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -259,7 +259,7 @@ class ApplicationSerializer(serializers.Serializer):
if application.work_flow is not None:
work_flow = application.work_flow
if work_flow is not None:
for node in work_flow['nodes']:
for node in work_flow.get('nodes', []):
if node['id'] == 'base-node':
input_field_list = node['properties']['input_field_list']
if input_field_list is not None: