Skip to content

Commit

Permalink
fix secret
Browse files Browse the repository at this point in the history
  • Loading branch information
OliwiaGowor committed Sep 12, 2024
1 parent b9c9bff commit 68df7c1
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/components/HelmReleases/ReleaseDataPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,20 @@ export function ReleaseDataPanel({ release, secret }) {
value={chart.metadata.appVersion}
/>
)}
<LayoutPanelRow
name={t('secrets.name_singular')}
value={
<Link
url={namespaceUrl(`secrets/${secret.metadata.name}`, {
namespace: secret.metadata.namespace,
})}
>
{secret.metadata.name}
</Link>
}
/>
{secret?.metadata && (
<LayoutPanelRow
name={t('secrets.name_singular')}
value={
<Link
url={namespaceUrl(`secrets/${secret.metadata.name}`, {
namespace: secret.metadata.namespace,
})}
>
{secret.metadata.name}
</Link>
}
/>
)}
</UI5Panel>
);
}

0 comments on commit 68df7c1

Please sign in to comment.