[M4] Demo: uploading state is never set to true #25

Closed
opened 2026-06-27 03:54:47 +00:00 by sessamekesh · 0 comments
Owner

File: demo/src/FilestoreOpsPanel.tsx:17-44

handleFileChange calls setUploading(false) in its finally block but never calls setUploading(true) at the start.

Impact: the "Uploading…" indicator (line 210-212) and the disabled state on the file input (line 197) are dead code — they never show.

Fix: setUploading(true) at the top of the handler (before the await file.arrayBuffer()).


Filed by an automated AI code review (manual proof-of-concept run). Code locations reference the various-cleanup branch.

**File:** `demo/src/FilestoreOpsPanel.tsx:17-44` `handleFileChange` calls `setUploading(false)` in its `finally` block but never calls `setUploading(true)` at the start. **Impact:** the "Uploading…" indicator (line 210-212) and the `disabled` state on the file input (line 197) are dead code — they never show. **Fix:** `setUploading(true)` at the top of the handler (before the `await file.arrayBuffer()`). --- _Filed by an automated AI code review (manual proof-of-concept run). Code locations reference the `various-cleanup` branch._
Sign in to join this conversation.
No description provided.