The original code directly accessed nested properties on `post.hero_image`, which is not guaranteed to exist. This cause a TypeError when the image object was nil. This commit introduces safe access by: - Prioritizing `hero_image` but falling back to `og_image` - Only rendering the banner if a valid image URL was resolved |
||
|---|---|---|
| .. | ||
| api | ||
| assets | ||
| errors | ||
| middleware | ||
| routes | ||
| routes-deprecated | ||
| utils | ||
| views | ||
| app-bootstrap.tsx | ||
| app.test.ts | ||
| app.ts | ||
| config.test.ts | ||
| config.ts | ||
| index.ts | ||
| pkg.test.ts | ||
| pkg.ts | ||
| registry.test.ts | ||
| registry.ts | ||
| router.js | ||
| routes.test.ts | ||
| server.ts | ||
| setup.test.ts | ||
| types.ts | ||