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 = () => {
|
||||
selectedReason = message?.annotation?.reason ?? '';
|
||||
comment = message?.annotation?.comment ?? '';
|
||||
if (!selectedReason) {
|
||||
selectedReason = message?.annotation?.reason ?? '';
|
||||
}
|
||||
|
||||
if (!comment) {
|
||||
comment = message?.annotation?.comment ?? '';
|
||||
}
|
||||
|
||||
tags = (message?.annotation?.tags ?? []).map((tag) => ({
|
||||
name: tag
|
||||
}));
|
||||
detailedRating = message?.annotation?.details?.rating ?? null;
|
||||
|
||||
if (!detailedRating) {
|
||||
detailedRating = message?.annotation?.details?.rating ?? null;
|
||||
}
|
||||
};
|
||||
|
||||
onMount(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user