Skip to content

Commit 7aa73e7

Browse files
committed
fix: make folder_id parameter optional in document.py
1 parent 2c3eb20 commit 7aa73e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/tools/serializers/tool.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,10 @@ def one(self):
323323
for k in tool.init_params:
324324
if k in password_fields and tool.init_params[k]:
325325
tool.init_params[k] = encryption(tool.init_params[k])
326-
return ToolModelSerializer(tool).data
326+
return {
327+
**ToolModelSerializer(tool).data,
328+
'init_params': tool.init_params if tool.init_params else {},
329+
}
327330

328331
def export(self):
329332
try:

0 commit comments

Comments
 (0)