mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-15 21:41:05 -06:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user