fix(web): trailerButton breaking if no trailer found

This commit is contained in:
Prayag Prajapati committed 2024-03-12 10:52:23 +05:30
1 parent 68c88068f6
commit 063c3e98e8
1 file changed
+1 -1
+1 -1
View File
@@ -31,7 +31,7 @@ const TrailerButton = (props: TrailerButtonType) => {
>
<ReactPlayer
playing={false}
url={props.trailerItem[0].Url}
url={props.trailerItem[0]?.Url}
width="100%"
height="auto"
style={{