Skip to content

fix(web): safe section.id access in page.tsx to fix broken build #209

@up-tandem

Description

@up-tandem

Bounded Context

apps/web

Problem

The build-and-test CI job is failing on main. In page.tsx:32, the code accesses section.id but ComponentSectionsBibleQuotesCarousel (and other new union members added to the sections dynamic zone) don't include id in their queried shape. This causes a TypeScript build error and blocks all PRs.

Expected Behaviour

Build passes on main. All section union members either include id in the query, or section.id access is guarded safely (e.g. optional chaining, type narrowing, or a fallback key).

Scope

  • apps/web only — specifically the sections rendering in page.tsx

Related Issues

Notes

This is a build-breaking regression on main and should be prioritised accordingly.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions