mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Fix default category showing if nothing is in it
This commit is contained in:
@@ -9,4 +9,7 @@ fragment CategoryFragment on CategoryType {
|
||||
key
|
||||
value
|
||||
}
|
||||
mangas {
|
||||
totalCount
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,7 +76,9 @@ class CategoryRepositoryImpl(
|
||||
.toFlow()
|
||||
.map {
|
||||
val data = it.dataAssertNoErrors
|
||||
data.categories.nodes.map { it.categoryFragment.toCategory() }
|
||||
data.categories.nodes
|
||||
.filterNot { it.categoryFragment.id == 0 && it.categoryFragment.mangas.totalCount == 0 }
|
||||
.map { it.categoryFragment.toCategory() }
|
||||
}
|
||||
|
||||
override fun createCategory(name: String): Flow<Unit> =
|
||||
|
||||
Reference in New Issue
Block a user