mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +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 styles = require('./styles');
|
||||||
|
|
||||||
const getMetaItemAtIndex = (catalog_resource, index) => {
|
const getMetaItemAtIndex = (catalog_resource, index) => {
|
||||||
return isFinite(index) &&
|
return index !== null &&
|
||||||
|
isFinite(index) &&
|
||||||
catalog_resource !== null &&
|
catalog_resource !== null &&
|
||||||
catalog_resource.content.type === 'Ready' &&
|
catalog_resource.content.type === 'Ready' &&
|
||||||
catalog_resource.content.content[index] ?
|
catalog_resource.content.content[index] ?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue