Skip to content

Commit a9eabcf

Browse files
authored
Merge pull request #54 from Callgent/blog
fix: import format
2 parents 21eb183 + 5daf931 commit a9eabcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/tree/import.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const Import: React.FC<ModalFormProps> = ({ initialData, type, adaptorKey, treeD
1313
const formData = new FormData(formRef.current);
1414
const formValues = Object.fromEntries(formData.entries()) as { endpointId: string, text: any, format: string };
1515
formValues.endpointId = initialData.id;
16-
formValues.format = "openAPI";
16+
// formValues.format = "json";
1717
type === 'Edit' ?
1818
// await axios.post('/api/endpoints/' + adaptorKey + '/create', formValues).then(req => {
1919
// setImportState(true);

0 commit comments

Comments
 (0)