|
|
@@ -41,7 +41,6 @@ export function FilesTable() {
|
|
|
const [rowSelection, setRowSelection] = useState<RowSelectionState>({});
|
|
|
const [files, setFiles] = useState<FileData[]>([]);
|
|
|
const [isUploading, setIsUploading] = useState(false);
|
|
|
- const [uploadProgress, setUploadProgress] = useState(0);
|
|
|
const queryClient = useQueryClient();
|
|
|
|
|
|
const { data, isLoading, isError, error, refetch } = useQuery({
|
|
|
@@ -189,7 +188,6 @@ export function FilesTable() {
|
|
|
if (!file) return;
|
|
|
|
|
|
setIsUploading(true);
|
|
|
- setUploadProgress(0);
|
|
|
|
|
|
const formData = new FormData();
|
|
|
formData.append("file", file);
|
|
|
@@ -219,7 +217,6 @@ export function FilesTable() {
|
|
|
alert("Failed to upload file");
|
|
|
} finally {
|
|
|
setIsUploading(false);
|
|
|
- setUploadProgress(0);
|
|
|
}
|
|
|
};
|
|
|
|