Skip to content

Commit

Permalink
fix: update image source reference in bot presets to use preset.image
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaroran committed Dec 25, 2024
1 parent 96de87f commit c5f5786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Setting/botpreset.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c5f5786

Please sign in to comment.