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

refac: naming convention

parent 06a61366
......@@ -11,7 +11,7 @@
import { onMount, tick, getContext } from 'svelte';
const i18n = getContext('i18n');
let componentRoot: HTMLElement;
let messageElement: HTMLElement;
const dispatch = createEventDispatcher();
......@@ -134,7 +134,7 @@
};
const renderLatex = () => {
let chatMessageElements = componentRoot.getElementsByClassName('chat-assistant');
let chatMessageElements = messageElement.getElementsByClassName('chat-assistant');
// let lastChatMessageElement = chatMessageElements[chatMessageElements.length - 1];
for (const element of chatMessageElements) {
......@@ -323,7 +323,7 @@
</script>
{#key message.id}
<div class=" flex w-full message-{message.id}" bind:this={componentRoot}>
<div class=" flex w-full message-{message.id}" bind:this={messageElement}>
<ProfileImage
src={modelfiles[message.model]?.imageUrl ?? `${WEBUI_BASE_URL}/static/favicon.png`}
/>
......
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