This commit is contained in:
Timothy J. Baek 2024-06-10 18:53:33 -07:00
parent 1241bc3e89
commit 8f2e799615
2 changed files with 3 additions and 2 deletions

View File

@ -46,8 +46,8 @@
} }
onMount(() => { onMount(() => {
selectedReason = message.annotation.reason; selectedReason = message?.annotation?.reason ?? '';
comment = message.annotation.comment; comment = message?.annotation?.comment;
loadReasons(); loadReasons();
}); });

View File

@ -982,6 +982,7 @@
? 'visible' ? 'visible'
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition regenerate-response-button" : 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition regenerate-response-button"
on:click={() => { on:click={() => {
showRateComment = false;
regenerateResponse(message); regenerateResponse(message);
}} }}
> >