fix: Key should be Category not Int

This commit is contained in:
Ahmad Ansori Palembani 2024-06-20 11:31:54 +07:00
parent e36379bd6c
commit af02f34167
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -754,9 +754,9 @@ class LibraryPresenter(
?: return@mapNotNull null ?: return@mapNotNull null
categorySet.add(it.category) categorySet.add(it.category)
LibraryItem(it, headerItem, viewContext) LibraryItem(it, headerItem, viewContext)
} }.groupBy { it.header.category.id!! }
libraryManga.groupBy { it.header.category.id!! } categories.associateWith { libraryManga[it.id].orEmpty() }
} }
} }