Skip to content

Commit d1b72d7

Browse files
committed
fix:use if-else structure for platform identifier logic
1 parent 28ac893 commit d1b72d7

File tree

1 file changed

+5
-3
lines changed
  • src/routes/(console)/project-[region]-[project]/overview/platforms

1 file changed

+5
-3
lines changed

src/routes/(console)/project-[region]-[project]/overview/platforms/+page.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@
139139
</Layout.Stack>
140140
</Table.Cell>
141141
<Table.Cell {root}>
142-
{(platform.type.includes('web') || platform.type === 'web'
143-
? platform.hostname
144-
: platform.key) || ''}
142+
{#if platform.type.includes('web') || platform.type === 'web'}
143+
{platform.hostname || ''}
144+
{:else}
145+
{platform.key || platform.hostname || ''}
146+
{/if}
145147
</Table.Cell>
146148
<Table.Cell {root}>
147149
{#if platform.$updatedAt}

0 commit comments

Comments
 (0)