fix genre view in library page

This commit is contained in:
Prayag Prajapati committed 2023-11-28 18:16:37 +05:30
1 parent 81d188ac5a
commit d6d81f2b4d
4 files changed
+21 -28

No files matched your search

+2 -6
View File
@@ -130,7 +130,6 @@ const LibraryView = () => {
if (currentLib.isError) {
console.error(currentLib.error);
}
console.log(currentLib.isSuccess);
if (currentLib.isSuccess) {
setViewType(null);
if (currentLib.data.CollectionType == "movies") {
@@ -875,7 +874,7 @@ const LibraryView = () => {
/>
</AccordionDetails>
</Accordion>
{currentLib.data.Items[0]
{currentLib.data
.CollectionType ==
"movies" && (
<Accordion className="library-filter-accordian">
@@ -1098,7 +1097,6 @@ const LibraryView = () => {
)}
{!onlyStatusFilterViews.includes(
currentLib.data
.Items[0]
.CollectionType,
) && (
<Accordion className="library-filter-accordian">
@@ -1308,9 +1306,7 @@ const LibraryView = () => {
return (
<GenreView
key={item.Id}
libraryId={
currentLib.data.Items[0].Id
}
libraryId={currentLib.data.Id}
genreId={item.Id}
genreName={item.Name}
userId={user.data.Id}