Skip to content

Railway Deployment #1b4f3f fix: guard undefined body in about page - #76

Merged
railway-app[bot] merged 1 commit into
mainfrom
railway/fix-deploy-1b4f3f
Sep 24, 2026
Merged

railway-app[bot] merged 1 commit into
mainfrom
railway/fix-deploy-1b4f3f

Conversation

@railway-app

@railway-app railway-app Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Problem

The build failed during Next.js's TypeScript type-check step with "Type error: 'body' is possibly 'undefined'" in app/[locale]/about/page.tsx. The strikes type in lib/i18n/dictionary.ts defines body as an optional string[], but the inline JSX replacing StoryCarousel called body.map() directly without a null check.

Solution

Changed body.map(...) to (body ?? []).map(...) to narrow the type to string[] before calling map, satisfying strict null checks while preserving identical runtime behavior.

Changes

  • Modified app/[locale]/about/page.tsx

Context

  • Deployment: #1b4f3f
  • Failed commit: 0e47825

Generated by Railway

@railway-app
railway-app Bot merged commit abf08f1 into main Sep 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants