Skip to content

Commit

Permalink
chore: Remove unused code and console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
amirrr committed Aug 4, 2024
1 parent 0a697a6 commit 2b9cf8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/aws-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions client/src/components/View/TableView/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2b9cf8f

Please sign in to comment.