fix: 'dict_keys' object is not subscriptable error (#11957)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
750662eb08
commit
26c10b9931
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ class AppToolProviderEntity(ToolProviderController):
|
|||
user_input_form_list = app_model_config.user_input_form_list
|
||||
for input_form in user_input_form_list:
|
||||
# get type
|
||||
form_type = input_form.keys()[0]
|
||||
form_type = list(input_form.keys())[0]
|
||||
default = input_form[form_type]["default"]
|
||||
required = input_form[form_type]["required"]
|
||||
label = input_form[form_type]["label"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue