diff --git a/frontend/src/components/import/ImportExcel.tsx b/frontend/src/components/import/ImportExcel.tsx index 389b5b9..3516a2d 100644 --- a/frontend/src/components/import/ImportExcel.tsx +++ b/frontend/src/components/import/ImportExcel.tsx @@ -44,20 +44,20 @@ export default (props: { }).then((res) => res.json()); }); - const { - data: columnCheck, - mutate: checkColumns, - isSuccess: isSuccessColumnCheck, - isLoading: isLoadingColumnCheck, - isError: isErrorColumnCheck - } = useMutation(() => { - const file = new FormData(); - file.append("file", props.files); - return fetch(`/api/instrument/columnCheck`, { - method: "POST", - body: file, - }).then((res) => res.json()); - }); + // const { + // data: columnCheck, + // mutate: checkColumns, + // isSuccess: isSuccessColumnCheck, + // isLoading: isLoadingColumnCheck, + // isError: isErrorColumnCheck + // } = useMutation(() => { + // const file = new FormData(); + // file.append("file", props.files); + // return fetch(`/api/instrument/columnCheck`, { + // method: "POST", + // body: file, + // }).then((res) => res.json()); + // }); const pick = () => { if (props.hasFile) { @@ -65,22 +65,22 @@ export default (props: { } }; - const check_columns = () => { - if (props.hasFile) { - checkColumns(); - } - }; - - const displayColumnCheck = (item: any) => { - return ( - item ? - item.length > 1 ? - item.map((element: string, i: any) => -