소스 검색

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

tags/0.6.15
Carson 1 년 전
부모
커밋
929c22a4e8
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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 파일 보기

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

Loading…
취소
저장