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