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
|
<ReactPlayer
|
||||||
playing={false}
|
playing={false}
|
||||||
url={props.trailerItem[0].Url}
|
url={props.trailerItem[0]?.Url}
|
||||||
width="100%"
|
width="100%"
|
||||||
height="auto"
|
height="auto"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in new issue
Block a user