Commit 7e0d3496 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: 1st #2208

parent 1888327a
......@@ -309,6 +309,7 @@
copyToClipboard={copyToClipboardWithToast}
/>
{:else}
{#key message.id}
<ResponseMessage
{message}
modelfiles={selectedModelfiles}
......@@ -334,6 +335,7 @@
});
}}
/>
{/key}
{/if}
</div>
</div>
......
......@@ -39,9 +39,9 @@
let selectedReason = null;
let comment = '';
$: if (message.annotation.rating === 1) {
$: if (message?.annotation?.rating === 1) {
reasons = LIKE_REASONS;
} else if (message.annotation.rating === -1) {
} else if (message?.annotation?.rating === -1) {
reasons = DISLIKE_REASONS;
}
......
......@@ -65,8 +65,8 @@
let generatingImage = false;
let showRateComment = false;
let showCitationModal = false;
let selectedCitation = null;
$: tokens = marked.lexer(sanitizeResponseContent(message.content));
......@@ -902,7 +902,7 @@
</div>
{/if}
{#if showRateComment}
{#if message.done && showRateComment}
<RateComment
messageId={message.id}
bind:show={showRateComment}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment