send subtitlesPath with video params only

This commit is contained in:
unclekingpin 2023-10-10 10:57:01 -07:00
parent 757ac79bcd
commit bb84b96217

View file

@ -69,7 +69,7 @@ const usePlayer = (urlParams, videoParams) => {
}
:
null,
subtitlesPath: typeof urlParams.type === 'string' && typeof urlParams.videoId === 'string' ?
subtitlesPath: videoParams !== null && typeof urlParams.type === 'string' && typeof urlParams.videoId === 'string' ?
{
resource: 'subtitles',
type: urlParams.type,