fix: update image source reference in bot presets to use preset.image

This commit is contained in:
Kwaroran
2024-12-26 07:44:18 +09:00
parent 96de87f629
commit c5f5786af7

View File

@@ -41,7 +41,7 @@
<span class="w-2 text-center mr-2 text-textcolor2">{i + 1}</span>
{/if}
{#if preset.image}
<img src={DBState.db.botPresets[DBState.db.botPresetsId]?.image} alt="icon" class="mr-2 min-w-6 min-h-6 w-6 h-6 rounded-md" decoding="async"/>
<img src={preset.image} alt="icon" class="mr-2 min-w-6 min-h-6 w-6 h-6 rounded-md" decoding="async"/>
{/if}
<span>{preset.name}</span>