mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 09:16:44 +00:00
refac
This commit is contained in:
parent
3da7ff1721
commit
de4e086bd5
@ -52,12 +52,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
selectedReason = message?.annotation?.reason ?? '';
|
if (!selectedReason) {
|
||||||
comment = message?.annotation?.comment ?? '';
|
selectedReason = message?.annotation?.reason ?? '';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!comment) {
|
||||||
|
comment = message?.annotation?.comment ?? '';
|
||||||
|
}
|
||||||
|
|
||||||
tags = (message?.annotation?.tags ?? []).map((tag) => ({
|
tags = (message?.annotation?.tags ?? []).map((tag) => ({
|
||||||
name: tag
|
name: tag
|
||||||
}));
|
}));
|
||||||
detailedRating = message?.annotation?.details?.rating ?? null;
|
|
||||||
|
if (!detailedRating) {
|
||||||
|
detailedRating = message?.annotation?.details?.rating ?? null;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user