fix(web): trailerButton breaking if no trailer found
This commit is contained in:
1 file changed
+1
-1
@@ -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={{
|
||||
|
||||
Reference in new issue
Block a user