From 2b9cf8f1148576ae94a89c5cca9fab2ae4cadac1 Mon Sep 17 00:00:00 2001 From: amirrr <6696894+amirrr@users.noreply.github.com> Date: Sun, 4 Aug 2024 22:04:34 +0200 Subject: [PATCH] chore: Remove unused code and console logs --- .github/workflows/aws-deploy.yml | 3 --- client/src/components/View/TableView/Table.tsx | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/aws-deploy.yml b/.github/workflows/aws-deploy.yml index b6f6e61..d7858c7 100644 --- a/.github/workflows/aws-deploy.yml +++ b/.github/workflows/aws-deploy.yml @@ -6,9 +6,6 @@ on: branches: [main] types: - completed - push: - branches: - - "75-task-queue-for-api-calls" env: AWS_REGION: us-east-1 # AWS region diff --git a/client/src/components/View/TableView/Table.tsx b/client/src/components/View/TableView/Table.tsx index b9cb6ae..3723cc8 100644 --- a/client/src/components/View/TableView/Table.tsx +++ b/client/src/components/View/TableView/Table.tsx @@ -41,7 +41,6 @@ const Table: React.FC = () => { const onMessage = useCallback( (data: { status: string; progress: number; task_id: string; done: boolean }) => { - console.log(data) setStatus({ status: data.status, progress: Number(data.progress), @@ -125,10 +124,9 @@ const Table: React.FC = () => { }) if (response.ok) { const new_data = await response.json() - console.log(`Task ID: ${new_data.task_id}`) + console.info(`Task ID: ${new_data.task_id}`) } else { setData((prev) => [...prev, get_failed_data(file.name)]) - console.error('Upload failed') } } catch (error) { console.error('Error uploading file:', error)