[M5] Demo: upload-failure message renders as success (green) #26
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
indigocode/igasset-viewer-react#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
File:
demo/src/FilestoreOpsPanel.tsx:218The result text is colored green when
uploadResult.startsWith("Upload"):Both the success string
Uploaded "..."and the failure stringUpload failed: ...start with"Upload", so failures render in the success color.Fix: track success with an explicit boolean flag instead of string-prefix matching.
Filed by an automated AI code review (manual proof-of-concept run). Code locations reference the
various-cleanupbranch.