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

This commit is contained in:
G30
2026-03-15 17:36:04 -05:00
committed by GitHub
parent f9756de693
commit b535275b17
2 changed files with 6 additions and 0 deletions
@@ -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>