mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 09:16:44 +00:00
fix: 1st #2208
This commit is contained in:
parent
1888327a79
commit
7e0d3496b5
@ -309,6 +309,7 @@
|
|||||||
copyToClipboard={copyToClipboardWithToast}
|
copyToClipboard={copyToClipboardWithToast}
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
|
{#key message.id}
|
||||||
<ResponseMessage
|
<ResponseMessage
|
||||||
{message}
|
{message}
|
||||||
modelfiles={selectedModelfiles}
|
modelfiles={selectedModelfiles}
|
||||||
@ -334,6 +335,7 @@
|
|||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
{/key}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -39,9 +39,9 @@
|
|||||||
let selectedReason = null;
|
let selectedReason = null;
|
||||||
let comment = '';
|
let comment = '';
|
||||||
|
|
||||||
$: if (message.annotation.rating === 1) {
|
$: if (message?.annotation?.rating === 1) {
|
||||||
reasons = LIKE_REASONS;
|
reasons = LIKE_REASONS;
|
||||||
} else if (message.annotation.rating === -1) {
|
} else if (message?.annotation?.rating === -1) {
|
||||||
reasons = DISLIKE_REASONS;
|
reasons = DISLIKE_REASONS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,8 +65,8 @@
|
|||||||
let generatingImage = false;
|
let generatingImage = false;
|
||||||
|
|
||||||
let showRateComment = false;
|
let showRateComment = false;
|
||||||
|
|
||||||
let showCitationModal = false;
|
let showCitationModal = false;
|
||||||
|
|
||||||
let selectedCitation = null;
|
let selectedCitation = null;
|
||||||
|
|
||||||
$: tokens = marked.lexer(sanitizeResponseContent(message.content));
|
$: tokens = marked.lexer(sanitizeResponseContent(message.content));
|
||||||
@ -902,7 +902,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if showRateComment}
|
{#if message.done && showRateComment}
|
||||||
<RateComment
|
<RateComment
|
||||||
messageId={message.id}
|
messageId={message.id}
|
||||||
bind:show={showRateComment}
|
bind:show={showRateComment}
|
||||||
|
Loading…
Reference in New Issue
Block a user