diff --git a/libs/domains/services/feature/src/lib/need-redeploy-flag/need-redeploy-flag.tsx b/libs/domains/services/feature/src/lib/need-redeploy-flag/need-redeploy-flag.tsx index 5c09fcb2010..f00e1a300a3 100644 --- a/libs/domains/services/feature/src/lib/need-redeploy-flag/need-redeploy-flag.tsx +++ b/libs/domains/services/feature/src/lib/need-redeploy-flag/need-redeploy-flag.tsx @@ -17,6 +17,8 @@ export function NeedRedeployFlag() { }) const { mutate: deployService } = useDeployService({ environmentId }) + if (!serviceDeploymentStatus) return null + const serviceDeploymentStatusState = serviceDeploymentStatus?.service_deployment_status ?? ServiceDeploymentStatusEnum.NEVER_DEPLOYED