mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-02 02:12:25 +00:00
fix: save a new feedback entry when rating a reply whose entry was deleted (#30077)
This commit is contained in:
parent
a63ddb36d2
commit
3fbc39a9dc
1 changed files with 5 additions and 2 deletions
|
|
@ -527,9 +527,12 @@
|
|||
message.feedbackId,
|
||||
feedbackItem
|
||||
).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
console.error(error);
|
||||
return null;
|
||||
});
|
||||
} else {
|
||||
}
|
||||
|
||||
if (!feedback) {
|
||||
feedback = await createNewFeedback(localStorage.token, feedbackItem).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue