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