mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 19:36:53 +08:00
fix: tools edit modal schema edit issue (#6396)
This commit is contained in:
@@ -87,9 +87,9 @@ const EditCustomCollectionModal: FC<Props> = ({
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
(async () => {
|
(async () => {
|
||||||
const customCollection = getCustomCollection()
|
|
||||||
try {
|
try {
|
||||||
const { parameters_schema, schema_type } = await parseParamsSchema(debouncedSchema)
|
const { parameters_schema, schema_type } = await parseParamsSchema(debouncedSchema)
|
||||||
|
const customCollection = getCustomCollection()
|
||||||
const newCollection = produce(customCollection, (draft) => {
|
const newCollection = produce(customCollection, (draft) => {
|
||||||
draft.schema_type = schema_type
|
draft.schema_type = schema_type
|
||||||
})
|
})
|
||||||
@@ -97,6 +97,7 @@ const EditCustomCollectionModal: FC<Props> = ({
|
|||||||
setParamsSchemas(parameters_schema)
|
setParamsSchemas(parameters_schema)
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
const customCollection = getCustomCollection()
|
||||||
const newCollection = produce(customCollection, (draft) => {
|
const newCollection = produce(customCollection, (draft) => {
|
||||||
draft.schema_type = ''
|
draft.schema_type = ''
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user