From 36318d8cd55699ddf4457d614cb6be20bcfdbfc5 Mon Sep 17 00:00:00 2001 From: MellyGray Date: Fri, 22 Sep 2023 16:39:46 +0200 Subject: [PATCH] fix: remove console.logs used for debugging --- src/files/infrastructure/FileJSDataverseRepository.ts | 1 - .../dataset/dataset-files/files-pagination/FilesPagination.tsx | 1 - src/sections/dataset/dataset-files/useFiles.tsx | 1 - 3 files changed, 3 deletions(-) diff --git a/src/files/infrastructure/FileJSDataverseRepository.ts b/src/files/infrastructure/FileJSDataverseRepository.ts index dd221a16c..6b5006692 100644 --- a/src/files/infrastructure/FileJSDataverseRepository.ts +++ b/src/files/infrastructure/FileJSDataverseRepository.ts @@ -73,7 +73,6 @@ export class FileJSDataverseRepository implements FileRepository { return JSFileMapper.toFilesCountInfo(jsFilesCountInfo) }) .catch((error: WriteError) => { - console.error('Error getting files count info from Dataverse', error) throw new Error(error.message) }) } diff --git a/src/sections/dataset/dataset-files/files-pagination/FilesPagination.tsx b/src/sections/dataset/dataset-files/files-pagination/FilesPagination.tsx index 5220275a2..7a6c3c976 100644 --- a/src/sections/dataset/dataset-files/files-pagination/FilesPagination.tsx +++ b/src/sections/dataset/dataset-files/files-pagination/FilesPagination.tsx @@ -18,7 +18,6 @@ export function FilesPagination({ pageSize, total }: FilesPaginationProps) { - console.log('FilesPagination', page, pageSize, total) const [paginationInfo, setPaginationInfo] = useState( new FilePaginationInfo(page, pageSize, total) ) diff --git a/src/sections/dataset/dataset-files/useFiles.tsx b/src/sections/dataset/dataset-files/useFiles.tsx index 5617803c0..27bedeaac 100644 --- a/src/sections/dataset/dataset-files/useFiles.tsx +++ b/src/sections/dataset/dataset-files/useFiles.tsx @@ -28,7 +28,6 @@ export function useFiles( .then((filesCountInfo: FilesCountInfo) => { setFilesCountInfo(filesCountInfo) onPaginationInfoChange(paginationInfo.withTotal(filesCountInfo.total)) - console.log(paginationInfo) }) .catch((error) => { console.error('There was an error getting the files count info', error)