Skip to content

Commit 432a01f

Browse files
fix: risk scenarios levels color in tables (#2885)
1 parent 1feab40 commit 432a01f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/lib/components/ModelTable/ModelTable.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,6 @@
604604
{:else}
605605
{value.str ?? '-'}
606606
{/if}
607-
{:else if value && value.name}
608-
{value.name}
609607
{:else if value && value.hexcolor}
610608
<p
611609
class="flex w-fit min-w-24 justify-center px-2 py-1 rounded-md ml-2 whitespace-nowrap {classesHexBackgroundText(
@@ -647,6 +645,8 @@
647645
</div>
648646
{:else if key === 'icon_fa_class'}
649647
<i class="text-lg fa {value}"></i>
648+
{:else if value && value.name}
649+
{value.name}
650650
{:else}
651651
<!-- NOTE: We will have to handle the ellipses for RTL languages-->
652652
{#if value?.length > 300}

0 commit comments

Comments
 (0)