Fix categories dialog showing group by categories

(cherry picked from commit afab9c236dda0eb3cc9892a4943c8c02bac46b75)
This commit is contained in:
Jobobby04 2023-03-16 18:10:48 -04:00
parent b6baac90dc
commit 428fa17bfc

View File

@ -1123,7 +1123,9 @@ class LibraryScreenModel(
val mangaList = state.value.selection.map { it.manga }
// Hide the default category because it has a different behavior than the ones from db.
val categories = state.value.categories.filter { it.id != 0L }
// SY -->
val categories = state.value.ogCategories.filter { it.id != 0L }
// SY <--
// Get indexes of the common categories to preselect.
val common = getCommonCategories(mangaList)