fix(ui): add icon fallback for missing model icons on Models pages (#22485)

This commit is contained in:
G30 authored and GitHub committed 2026-03-15 17:36:04 -05:00
1 parent f9756de693
commit b535275b17
2 files changed
+6

No files matched your search

@@ -575,6 +575,9 @@
src={`${WEBUI_API_BASE_URL}/models/model/profile/image?id=${model.id}`}
alt="modelfile profile"
class=" rounded-full w-full h-auto object-cover"
on:error={(e) => {
e.target.src = '/favicon.png';
}}
/>
</div>
</div>
@@ -484,6 +484,9 @@
src={`${WEBUI_API_BASE_URL}/models/model/profile/image?id=${model.id}&lang=${$i18n.language}`}
alt="modelfile profile"
class=" rounded-2xl size-12 object-cover"
on:error={(e) => {
e.target.src = '/favicon.png';
}}
/>
</div>
</div>