mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Fix accidental onError on a asFlow
This commit is contained in:
@@ -22,7 +22,7 @@ class GetCategories @Inject constructor(private val categoryRepository: Category
|
||||
}
|
||||
.singleOrNull()
|
||||
|
||||
fun asFlow(dropDefault: Boolean = false, onError: suspend (Throwable) -> Unit = {}) = categoryRepository.getCategories()
|
||||
fun asFlow(dropDefault: Boolean = false) = categoryRepository.getCategories()
|
||||
.map { categories ->
|
||||
if (dropDefault) {
|
||||
categories.filterNot { it.name.equals("default", true) }
|
||||
|
||||
Reference in New Issue
Block a user