TypeError: Cannot read properties of null (reading 'active') is not a helpful way for Deploy > Pages to tell you that a project has no live site. It is what the live block did, though, once the only primary deployment had been stopped. The query returned no active primary deployment. The parent passed null . The child read deployment.active anyway.
This is the story of gitlab-org/gitlab!274390 , a one-condition render fix, and a reminder that a Vue prop default is not a null guard.
The issue: a block that assumed a deployment existed
The issue was gitlab-org/gitlab#642598 , opened by Miguel Rincon. On Deploy > Pages , a project that still has Pages enabled but no active primary deployment — for example after its only deployment was stopped — blew up in the live block.
deployments.vue passed newestDeployment into live-block . That computed value is null when the query has no active primary deployment. live-block still rendered once loading finished, and it read deployment.active .…