Skip to content

Bug :disease.js & disease.html – Race Condition in Image Upload - #1796

Merged
omroy07 merged 1 commit into
omroy07:mainfrom
Aditya8369:145
May 28, 2026
Merged

Bug :disease.js & disease.html – Race Condition in Image Upload#1796
omroy07 merged 1 commit into
omroy07:mainfrom
Aditya8369:145

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

The race is fixed in disease.js. File selection is now promise-based, the Analyze button is disabled immediately while the preview is loading, stale callbacks are ignored with a selection token, and the selected file is only committed after the latest load finishes. The analyze path also refuses to run while an upload is still pending at disease.js.

The button was already disabled in the markup at disease.html, so no HTML change was needed. I validated the edited JS with get_errors and it returned no errors.

closes #145

@vercel

vercel Bot commented May 28, 2026

Copy link
Copy Markdown

@Aditya8369 is attempting to deploy a commit to the Om Roy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@Aditya8369

Copy link
Copy Markdown
Contributor Author

@omroy07 merge under nsoc

@omroy07
omroy07 merged commit 9e72f82 into omroy07:main May 28, 2026
1 of 4 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congrats @Aditya8369 on getting your PR merged! 🙌
Thanks for the contribution — looking forward to more from you 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug :disease.js & disease.html – Race Condition in Image Upload

2 participants