mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-14 04:08:46 +00:00
fix: a rating's reason and comment are no longer wiped when its tags arrive (#32334)
This commit is contained in:
parent
1c5f101d0b
commit
2d56514101
1 changed files with 7 additions and 4 deletions
|
|
@ -569,13 +569,16 @@
|
|||
console.log(tags);
|
||||
|
||||
if (tags) {
|
||||
updatedMessage.annotation.tags = tags;
|
||||
feedbackItem.data.tags = tags;
|
||||
const taggedMessage = {
|
||||
...message,
|
||||
annotation: { ...(message?.annotation ?? {}), tags: tags }
|
||||
};
|
||||
feedbackItem.data = { ...feedbackItem.data, ...taggedMessage.annotation };
|
||||
|
||||
saveMessage(message.id, updatedMessage);
|
||||
saveMessage(message.id, taggedMessage);
|
||||
await updateFeedbackById(
|
||||
localStorage.token,
|
||||
updatedMessage.feedbackId,
|
||||
taggedMessage.feedbackId,
|
||||
feedbackItem
|
||||
).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue