fix bug of object save
This commit is contained in:
parent
34bc18085a
commit
e4e626cd4e
@ -128,9 +128,7 @@ const initFormData = () => {
|
||||
|
||||
if (!currentTool.value?.inputSchema?.properties) return;
|
||||
|
||||
const newSchemaDataForm: Record<string, number | boolean | string | object> = {};
|
||||
|
||||
console.log(currentTool.value.inputSchema.properties);
|
||||
const newSchemaDataForm: Record<string, number | boolean | string | object> = {};
|
||||
|
||||
Object.entries(currentTool.value.inputSchema.properties).forEach(([name, property]) => {
|
||||
newSchemaDataForm[name] = getDefaultValue(property);
|
||||
|
@ -27,7 +27,7 @@ export function normaliseJavascriptType(type: string) {
|
||||
case 'string':
|
||||
return 'string';
|
||||
default:
|
||||
return 'string';
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user