From ad4050275b123bc7eea9e2719f160411d3eb39c2 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 14 Oct 2026 15:00:43 +0400 Subject: [PATCH] refac --- src/lib/components/common/ChatParticipants.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/components/common/ChatParticipants.svelte b/src/lib/components/common/ChatParticipants.svelte index 25c7810af6..7bbf5ee42e 100644 --- a/src/lib/components/common/ChatParticipants.svelte +++ b/src/lib/components/common/ChatParticipants.svelte @@ -32,8 +32,9 @@ draggable="false" class="{className} rounded-full shrink-0 object-cover" onerror={(event) => { - if (!event.currentTarget.src.endsWith('/static/favicon.png')) { - event.currentTarget.src = `${WEBUI_BASE_URL}/static/favicon.png`; + const image = event.currentTarget as HTMLImageElement; + if (!image.src.endsWith('/static/favicon.png')) { + image.src = `${WEBUI_BASE_URL}/static/favicon.png`; } }} />