Unverified Commit 2f867266 authored by Yeuoly's avatar Yeuoly

fix: duplicated parameters

parent 0a21da5b
...@@ -101,6 +101,7 @@ class ToolManageService: ...@@ -101,6 +101,7 @@ class ToolManageService:
for index, parameter in enumerate(current_parameters): for index, parameter in enumerate(current_parameters):
if parameter.name == runtime_parameter.name and parameter.form == runtime_parameter.form: if parameter.name == runtime_parameter.name and parameter.form == runtime_parameter.form:
current_parameters[index] = runtime_parameter current_parameters[index] = runtime_parameter
found = True
break break
if not found and runtime_parameter.form == ToolParameter.ToolParameterForm.FORM: if not found and runtime_parameter.form == ToolParameter.ToolParameterForm.FORM:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment