diff --git a/web/features/deployments/detail/common.tsx b/web/features/deployments/detail/common.tsx index 7f9629f957..10c208da6c 100644 --- a/web/features/deployments/detail/common.tsx +++ b/web/features/deployments/detail/common.tsx @@ -42,6 +42,7 @@ export function Section({ tone = 'default', showDivider = true, }: SectionProps) { + const hasAction = Boolean(action) const titleClassName = cn( 'system-sm-semibold', tone === 'destructive' @@ -70,7 +71,7 @@ export function Section({ )}
- {action + {hasAction ? (
@@ -95,7 +96,7 @@ export function Section({
{title}
- {action && ( + {hasAction && (
{action}