Skip to content

Commit 2c40dbc

Browse files
committed
error message gap
1 parent d245c22 commit 2c40dbc

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/routes/dataproduct/errors/+page.gql

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ query AllIngresses {
6262
detail
6363
name
6464
}
65+
... on WorkloadStatusNoRunningInstances {
66+
level
67+
}
6568
}
6669
}
6770
}

src/routes/team/[team]/[env]/app/[app]/+page.svelte

+9-5
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,15 @@
7070
<div class="wrapper">
7171
<div class="app-content">
7272
<div class="main-section">
73-
{#each app.status.errors as error, i (i)}
74-
{#if supportedErrorTypes.includes(error.__typename)}
75-
<ErrorMessage {error} instances={app.instances.nodes} {docURL} workloadType="App" />
76-
{/if}
77-
{/each}
73+
{#if app.status.errors.filter((e) => supportedErrorTypes.includes(e.__typename)).length}
74+
<div style="display: flex; flex-direction: column; gap: var(--a-spacing-2);">
75+
{#each app.status.errors as error, i (i)}
76+
{#if supportedErrorTypes.includes(error.__typename)}
77+
<ErrorMessage {error} instances={app.instances.nodes} {docURL} workloadType="App" />
78+
{/if}
79+
{/each}
80+
</div>
81+
{/if}
7882

7983
{#if app.deletionStartedAt}
8084
<Alert variant="info" size="small" fullWidth={false}>

0 commit comments

Comments
 (0)