mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
refactor: make sure error is not thrown when null
This commit is contained in:
parent
afde589963
commit
a659e88cfa
1 changed files with 1 additions and 1 deletions
|
|
@ -533,7 +533,7 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
}
|
||||
case 'KeyV': {
|
||||
closeMenus();
|
||||
if (player.metaItem !== null && player.metaItem.type === 'Ready' && player.metaItem.content.videos.length > 0) {
|
||||
if (player.metaItem !== null && player.metaItem.type === 'Ready' && player.metaItem?.content?.videos?.length > 0) {
|
||||
toggleVideosMenu();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue