Skip to content

Commit 2b9cf8f

Browse files
committed
chore: Remove unused code and console logs
1 parent 0a697a6 commit 2b9cf8f

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.github/workflows/aws-deploy.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
branches: [main]
77
types:
88
- completed
9-
push:
10-
branches:
11-
- "75-task-queue-for-api-calls"
129

1310
env:
1411
AWS_REGION: us-east-1 # AWS region

client/src/components/View/TableView/Table.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const Table: React.FC = () => {
4141

4242
const onMessage = useCallback(
4343
(data: { status: string; progress: number; task_id: string; done: boolean }) => {
44-
console.log(data)
4544
setStatus({
4645
status: data.status,
4746
progress: Number(data.progress),
@@ -125,10 +124,9 @@ const Table: React.FC = () => {
125124
})
126125
if (response.ok) {
127126
const new_data = await response.json()
128-
console.log(`Task ID: ${new_data.task_id}`)
127+
console.info(`Task ID: ${new_data.task_id}`)
129128
} else {
130129
setData((prev) => [...prev, get_failed_data(file.name)])
131-
console.error('Upload failed')
132130
}
133131
} catch (error) {
134132
console.error('Error uploading file:', error)

0 commit comments

Comments
 (0)