Skip to content

Commit 3c0f166

Browse files
fix(plugins): The endpoint form of the extension plugin is missing the input field.
The `toolCredentialToFormSchemas` function in `web/app/components/tools/utils/to-form-schema.ts` was not correctly mapping the `type` property for tool credentials. This resulted in boolean fields not being rendered as checkboxes in the plugin's endpoint form. This commit adds the type mapping to the function, ensuring that all form fields, including booleans, are rendered correctly.
1 parent aa3129c commit 3c0f166

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/app/components/tools/utils/to-form-schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const toolCredentialToFormSchemas = (parameters: ToolCredential[]) => {
4646
...parameter,
4747
variable: parameter.name,
4848
label: parameter.label,
49+
type: toType(parameter.type),
4950
tooltip: parameter.help,
5051
show_on: [],
5152
options: parameter.options?.map((option) => {

0 commit comments

Comments
 (0)