mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-05-24 10:18:53 +00:00
chore: fix component using the icon field only when it' defined
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
This commit is contained in:
parent
ad288ce7f6
commit
f4a3321b2f
1 changed files with 3 additions and 1 deletions
|
|
@ -61,5 +61,7 @@ function executeAction() {
|
|||
class="h-[32px] w-[45px] cursor-pointer text-white {name === 'Close'
|
||||
? 'hover:bg-[#be4425]'
|
||||
: 'hover:bg-[#2d2d2d]'} flex place-items-center justify-center">
|
||||
<svelte:component this={icon} size={iconSize} />
|
||||
{#if icon}
|
||||
<svelte:component this={icon} size={iconSize} />
|
||||
{/if}
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Reference in a new issue