From ecee879694ba1e54e5c3cf92938964a209171adb Mon Sep 17 00:00:00 2001 From: chyoo Date: Thu, 13 Aug 2026 17:58:33 +0900 Subject: [PATCH] patch.. --- src/pages/applications/DeploymentManagementPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 (