mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: There is a tool node in the application - the tool node has startup parameters - after importing, the tool should be disabled (#3831)
This commit is contained in:
parent
8ac5f409e4
commit
2367b8747e
|
|
@ -562,7 +562,7 @@ class ApplicationSerializer(serializers.Serializer):
|
||||||
template_id=tool.get('template_id'),
|
template_id=tool.get('template_id'),
|
||||||
input_field_list=tool.get('input_field_list'),
|
input_field_list=tool.get('input_field_list'),
|
||||||
init_field_list=tool.get('init_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,
|
scope=ToolScope.WORKSPACE,
|
||||||
folder_id=workspace_id,
|
folder_id=workspace_id,
|
||||||
workspace_id=workspace_id)
|
workspace_id=workspace_id)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue