mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 14:30:20 -05: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:
1 parent
680202aa88
commit
fae12c8a98
1 file changed
+1
-1
@@ -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