We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51131b8 commit cc4ce85Copy full SHA for cc4ce85
src/app/lib/seoUtils/getLiveBlogPostingSchema/index.ts
@@ -45,7 +45,8 @@ export default ({
45
'@type': 'BlogPosting',
46
headline:
47
// @ts-expect-error - deeply nested
48
- headlineBlock?.model.blocks[0].model.blocks[0].model.text ?? null,
+ headlineBlock?.model.blocks?.[0]?.model.blocks?.[0]?.model.text ??
49
+ null,
50
publisher: {
51
'@type': 'Organization',
52
name: brandName,
0 commit comments