ui(deploy): hide CheckpointsTable when no past deployments exist

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-23 14:34:09 +02:00
parent e36c82c4db
commit b3d1dd377d
2 changed files with 1 additions and 6 deletions

View File

@@ -113,11 +113,6 @@
opacity: 0.55; opacity: 0.55;
} }
.checkpointEmpty {
color: var(--text-muted);
font-size: 13px;
}
/* Config tab shared */ /* Config tab shared */
.configInline { .configInline {
display: flex; display: flex;

View File

@@ -29,7 +29,7 @@ export function CheckpointsTable({
.sort((a, b) => (b.deployedAt ?? '').localeCompare(a.deployedAt ?? '')); .sort((a, b) => (b.deployedAt ?? '').localeCompare(a.deployedAt ?? ''));
if (checkpoints.length === 0) { if (checkpoints.length === 0) {
return <div className={styles.checkpointEmpty}>No past deployments yet.</div>; return null;
} }
const cap = jarRetentionCount && jarRetentionCount > 0 ? jarRetentionCount : FALLBACK_CAP; const cap = jarRetentionCount && jarRetentionCount > 0 ? jarRetentionCount : FALLBACK_CAP;