This commit is contained in:
Timothy Jaeryang Baek 2024-12-31 02:48:43 -08:00
parent 3da7ff1721
commit de4e086bd5

View File

@ -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(() => {