fix: thumbs-down reason and comment are lost when saved before tags are generated (#33716)

After a thumbs down, pressing Save in the rating form while the rating's tags were still being generated did nothing: the form showed its thank-you message, but the score, reason and comment were never stored. Save now stores them right away, and clicking a thumb again while a rating is saving is ignored as before.

Fixes #33715
This commit is contained in:
Classic298 2026-11-03 23:06:31 +01:00 • committed by GitHub
parent 680202aa88
commit fae12c8a98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -483,7 +483,7 @@
let feedbackLoading = false;
const feedbackHandler = async (rating: number | null = null, details: object | null = null) => {
if (feedbackLoading) return;
if (feedbackLoading && rating !== null) return;
feedbackLoading = true;
console.log('Feedback', rating, details);