mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 09:21:22 +00: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:
parent
680202aa88
commit
fae12c8a98
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue