mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-05 04:19:55 +00:00
getMetaItemAtIndex more strict
This commit is contained in:
parent
1126ff1482
commit
4ed55625bf
1 changed files with 2 additions and 1 deletions
|
|
@ -8,7 +8,8 @@ const useSelectableInputs = require('./useSelectableInputs');
|
|||
const styles = require('./styles');
|
||||
|
||||
const getMetaItemAtIndex = (catalog_resource, index) => {
|
||||
return isFinite(index) &&
|
||||
return index !== null &&
|
||||
isFinite(index) &&
|
||||
catalog_resource !== null &&
|
||||
catalog_resource.content.type === 'Ready' &&
|
||||
catalog_resource.content.content[index] ?
|
||||
|
|
|
|||
Loading…
Reference in a new issue