diff --git a/libs/domains/environment-logs/feature/src/lib/environment-stages/environment-stages.spec.tsx b/libs/domains/environment-logs/feature/src/lib/environment-stages/environment-stages.spec.tsx
index 54aa7bdfe91..1b47992f464 100644
--- a/libs/domains/environment-logs/feature/src/lib/environment-stages/environment-stages.spec.tsx
+++ b/libs/domains/environment-logs/feature/src/lib/environment-stages/environment-stages.spec.tsx
@@ -15,6 +15,7 @@ describe('EnvironmentStages', () => {
},
environmentStatus: {
state: 'RUNNING',
+ last_deployment_id: 'exec-1',
},
hideSkipped: false,
setHideSkipped: jest.fn(),
@@ -54,7 +55,7 @@ describe('EnvironmentStages', () => {
const logLink = screen.getByText('Pre-check logs').closest('a')
expect(logLink).toHaveAttribute(
'href',
- ENVIRONMENT_LOGS_URL('org-1', 'proj-1', 'env-1') + ENVIRONMENT_PRE_CHECK_LOGS_URL()
+ ENVIRONMENT_LOGS_URL('org-1', 'proj-1', 'env-1') + ENVIRONMENT_PRE_CHECK_LOGS_URL('exec-1')
)
})
})
diff --git a/libs/domains/environment-logs/feature/src/lib/environment-stages/environment-stages.tsx b/libs/domains/environment-logs/feature/src/lib/environment-stages/environment-stages.tsx
index c749a8145d8..a7075bef88b 100644
--- a/libs/domains/environment-logs/feature/src/lib/environment-stages/environment-stages.tsx
+++ b/libs/domains/environment-logs/feature/src/lib/environment-stages/environment-stages.tsx
@@ -32,7 +32,7 @@ export function EnvironmentStages({
setHideSkipped,
children,
}: EnvironmentStagesProps) {
- const executionId = environmentStatus.last_deployment_id ?? undefined
+ const executionId = environmentStatus.last_deployment_id
return (
@@ -75,21 +75,26 @@ export function EnvironmentStages({
-
-
-
-
-
- Pre-check logs
-
-
-
+ {executionId && (
+
+
+
+
+
+ Pre-check logs
+
+
+
+ )}
@@ -426,11 +415,13 @@ export function ListDeploymentLogs({
)}
-
+ {isLastVersion && (
+
+ )}
)
diff --git a/libs/domains/services/feature/src/lib/redeploy-modal/__snapshots__/redeploy-modal.spec.tsx.snap b/libs/domains/services/feature/src/lib/redeploy-modal/__snapshots__/redeploy-modal.spec.tsx.snap
index c3050e2e1ac..f789a869152 100644
--- a/libs/domains/services/feature/src/lib/redeploy-modal/__snapshots__/redeploy-modal.spec.tsx.snap
+++ b/libs/domains/services/feature/src/lib/redeploy-modal/__snapshots__/redeploy-modal.spec.tsx.snap
@@ -33,12 +33,12 @@ exports[`RedeployModal should match snapshot 1`] = `
value="redeploy"
/>