mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
not needed metaItem memo removed
This commit is contained in:
parent
c047d045f5
commit
dab772ead2
1 changed files with 3 additions and 14 deletions
|
|
@ -15,20 +15,9 @@ const MetaDetails = ({ urlParams }) => {
|
|||
);
|
||||
const streamsResourceRef = metaDetails.selected !== null ? metaDetails.selected.streams_resource_ref : null;
|
||||
const streamsResources = metaDetails.streams_resources;
|
||||
const metaItem = React.useMemo(() => {
|
||||
return selectedMetaResource !== null ?
|
||||
selectedMetaResource.content.content
|
||||
:
|
||||
metaResourceRef !== null ?
|
||||
{
|
||||
id: metaResourceRef.id,
|
||||
type: metaResourceRef.type_name,
|
||||
name: ''
|
||||
}
|
||||
:
|
||||
null;
|
||||
}, [metaResourceRef, selectedMetaResource]);
|
||||
const [inLibrary, toggleInLibrary] = useInLibrary(metaItem);
|
||||
const [inLibrary, toggleInLibrary] = useInLibrary(
|
||||
selectedMetaResource !== null ? selectedMetaResource.content.content : null
|
||||
);
|
||||
return (
|
||||
<div className={styles['metadetails-container']}>
|
||||
<HorizontalNavBar
|
||||
|
|
|
|||
Loading…
Reference in a new issue