Quellcode durchsuchen

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

tags/0.6.15
Carson vor 1 Jahr
Ursprung
Commit
929c22a4e8
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2
    1
      web/app/components/tools/edit-custom-collection-modal/index.tsx

+ 2
- 1
web/app/components/tools/edit-custom-collection-modal/index.tsx Datei anzeigen

@@ -87,9 +87,9 @@ const EditCustomCollectionModal: FC<Props> = ({
return
}
(async () => {
const customCollection = getCustomCollection()
try {
const { parameters_schema, schema_type } = await parseParamsSchema(debouncedSchema)
const customCollection = getCustomCollection()
const newCollection = produce(customCollection, (draft) => {
draft.schema_type = schema_type
})
@@ -97,6 +97,7 @@ const EditCustomCollectionModal: FC<Props> = ({
setParamsSchemas(parameters_schema)
}
catch (e) {
const customCollection = getCustomCollection()
const newCollection = produce(customCollection, (draft) => {
draft.schema_type = ''
})

Laden…
Abbrechen
Speichern