diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-04-11 15:26:24 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-04-11 15:26:24 +0700 |
| commit | 311bf133d0f8520566ab3e99f442c2ca6b710449 (patch) | |
| tree | 09854ef9467fa32c7831770afcc031c48281b367 /src/pages/video.jsx | |
| parent | fbf187e7a2db052bf4fe78cfdbcc7c1cfaa82d75 (diff) | |
fix product slider layout
Diffstat (limited to 'src/pages/video.jsx')
| -rw-r--r-- | src/pages/video.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/video.jsx b/src/pages/video.jsx index 708c3368..61790dbb 100644 --- a/src/pages/video.jsx +++ b/src/pages/video.jsx @@ -33,7 +33,7 @@ export default function Video() { <div className='shadow bg-white rounded' key={video.id}> <LazyLoadComponent> <iframe - src={`https://www.youtube.com/embed/${video.url.match(/v=([^&]*)/)[1]}`} + src={`https://www.youtube.com/embed/${video.url.match(/v=([^&]*)/)?.[1] || ''}`} title='YouTube video player' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share' allowFullScreen={true} |
