diff --git a/src/pages/applications/DeploymentManagementPage.tsx b/src/pages/applications/DeploymentManagementPage.tsx index accac08..2bc5a99 100644 --- a/src/pages/applications/DeploymentManagementPage.tsx +++ b/src/pages/applications/DeploymentManagementPage.tsx @@ -36,13 +36,13 @@ type ImageTags = { artifacts?: Record; }; -function releaseArtifacts(release?: AppRelease | null) { +function releaseArtifacts(release?: AppRelease | null, appName?: string) { const imageTags = release?.imageTags as ImageTags | null | undefined; const entries = Object.entries(imageTags?.images ?? {}).filter(([, image]) => ( !/^(postgres|mysql|mariadb|mongo)(:|@)/i.test(image.trim()) )); if (entries.length) return entries; - if (release?.artifact) return [[release.app.name, release.artifact]]; + if (release?.artifact) return [[release.app?.name ?? appName ?? 'artifact', release.artifact]]; return []; } @@ -263,7 +263,7 @@ export function DeploymentManagementPage() { ) : null} {pagedDeployments.map((deployment, index) => { - const artifacts = releaseArtifacts(deployment.release); + const artifacts = releaseArtifacts(deployment.release, deployment.app?.name); return (