Parcourir la source

fix: tools edit modal schema edit issue (#6396)

tags/0.6.15
Carson il y a 1 an
Parent
révision
929c22a4e8
Aucun compte lié à l'adresse e-mail de l'auteur

+ 2
- 1
web/app/components/tools/edit-custom-collection-modal/index.tsx Voir le fichier

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
}) })
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 = ''
}) })

Chargement…
Annuler
Enregistrer