We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ee66c commit e770bf2Copy full SHA for e770bf2
components/youtube-shorts.tsx
@@ -30,7 +30,9 @@ export function YouTubeShorts(props: { shorts: string[] }) {
30
})
31
}, [api])
32
33
- if (shorts.length === 1) {
+ if (!shorts?.length) return (<></>);
34
+
35
+ if (shorts?.length === 1) {
36
return (
37
<div className='flex items-center justify-center w-full'>
38
<div className="aspect-w-9 aspect-h-16 w-full max-w-xs">
0 commit comments