Skip to content

Commit 2b2e881

Browse files
authored
fix(Media): check if title not null object (#1318)
1 parent c15d0bb commit 2b2e881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks/Media/Media.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const MediaBlock = (props: MediaBlockProps) => {
2323
const theme = useTheme();
2424
const mediaThemed = getThemedValue(media, theme);
2525
const mediaWithMicrodata = mergeVideoMicrodata(mediaThemed, {
26-
name: typeof title === 'object' ? title.text : title,
26+
name: typeof title === 'object' && 'text' in title ? title.text : title,
2727
description,
2828
});
2929

0 commit comments

Comments
 (0)