fix: There is a tool node in the application - the tool node has startup parameters - after importing, the tool should be disabled (#3831)
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled

This commit is contained in:
shaohuzhang1 2025-08-06 16:38:37 +08:00 committed by GitHub
parent 8ac5f409e4
commit 2367b8747e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -562,7 +562,7 @@ class ApplicationSerializer(serializers.Serializer):
template_id=tool.get('template_id'),
input_field_list=tool.get('input_field_list'),
init_field_list=tool.get('init_field_list'),
is_active=tool.get('is_active') if len((tool.get('init_field_list') or [])) > 0 else False,
is_active=False if len((tool.get('init_field_list') or [])) > 0 else tool.get('is_active'),
scope=ToolScope.WORKSPACE,
folder_id=workspace_id,
workspace_id=workspace_id)