mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(library): Duplicate entries on Ungrouped library
Fixes GH-176
This commit is contained in:
parent
a27c0edf13
commit
91a9e081d7
1 changed files with 1 additions and 1 deletions
|
@ -916,7 +916,7 @@ class LibraryPresenter(
|
|||
} + (-1 to catItemAll) + (0 to LibraryHeaderItem({ categories.getOrDefault(0) }, 0))
|
||||
).toMap()
|
||||
|
||||
val items = libraryManga.mapNotNull {
|
||||
val items = libraryManga.apply { if (!libraryIsGrouped) distinctBy { it.id } }.mapNotNull {
|
||||
val headerItem = (
|
||||
if (!libraryIsGrouped) {
|
||||
catItemAll
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue