fix: resolve NPE in Node.svelte when model is undefined (#19935)

This commit is contained in:
G30 2025-12-14 12:13:49 -05:00 committed by GitHub
parent e11c6dca75
commit 06038cd73d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@
{:else}
<div class="flex w-full">
<ProfileImage
src={`${WEBUI_API_BASE_URL}/models/model/profile/image?id=${data.model.id}&lang=${$i18n.language}`}
src={`${WEBUI_API_BASE_URL}/models/model/profile/image?id=${data.model?.id ?? data.message.model}&lang=${$i18n.language}`}
className={'size-5 -translate-y-[1px]'}
/>