Commit d84498f
fix(frontend): guard concurrent uploads and remove dead test in audio upload component
Add early return in onFileSelected when isUploading is true to prevent
race conditions from concurrent file selections. Remove the second spec
test that had a dead metadata variable and duplicated the first test's
assertion.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c2a6cff commit d84498f
2 files changed
Lines changed: 3 additions & 7 deletions
File tree
- frontend/src/app/workspace/component/hugging-face-audio-upload
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 26 | | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
0 commit comments