Revert "Drag n Drop Photos - Staff Dashboard"#1095
Conversation
This reverts commit e919286.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ab25a5b8a0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| img.onload = async () => { | ||
| // Crop to square from center |
There was a problem hiding this comment.
Handle image load errors in photo upload flow
This change removes the previous img.onerror/file-type guard path, so when a selected file cannot be decoded as an image (e.g., corrupted image data or a mislabeled file), the handler never reaches upload/error UI and the user gets no feedback while the modal remains in an inconsistent state. The prior implementation rejected this case and surfaced an actionable error, so this is a regression in the upload flow.
Useful? React with 👍 / 👎.
|
Bad change to add and then revert something. Discourage this |
Reverts #1094