Skip to content

Commit 2367b87

Browse files
authored
fix: There is a tool node in the application - the tool node has startup parameters - after importing, the tool should be disabled (#3831)
1 parent 8ac5f40 commit 2367b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/serializers/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def to_tool(tool, workspace_id, user_id):
562562
template_id=tool.get('template_id'),
563563
input_field_list=tool.get('input_field_list'),
564564
init_field_list=tool.get('init_field_list'),
565-
is_active=tool.get('is_active') if len((tool.get('init_field_list') or [])) > 0 else False,
565+
is_active=False if len((tool.get('init_field_list') or [])) > 0 else tool.get('is_active'),
566566
scope=ToolScope.WORKSPACE,
567567
folder_id=workspace_id,
568568
workspace_id=workspace_id)

0 commit comments

Comments
 (0)