Skip to content

Commit dfe7e8a

Browse files
committed
fix missing youtube return empty
1 parent e770bf2 commit dfe7e8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/youtube.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ export function YouTube(props: {
1010
className?: string;
1111
}) {
1212
const { youtube, image, className } = props;
13+
if (!youtube) {
14+
return <></>;
15+
}
1316
const id = youtubeParser(youtube);
1417

1518
return (

0 commit comments

Comments
 (0)