Fix tag editor apps not loading
This commit is contained in:
parent
6989c90fbe
commit
b433e5884c
@ -55,7 +55,7 @@ class EditTagSheetVM : ViewModel(), KoinComponent {
|
|||||||
viewModelScope.launch(Dispatchers.Default) {
|
viewModelScope.launch(Dispatchers.Default) {
|
||||||
allTags = tagService.getAllTags().first().toSet()
|
allTags = tagService.getAllTags().first().toSet()
|
||||||
val items = if (tag != null) tagService.getTaggedItems(tag).first() else emptyList()
|
val items = if (tag != null) tagService.getTaggedItems(tag).first() else emptyList()
|
||||||
val apps = appRepository.findMany().first().sorted()
|
val apps = appRepository.findMany().first { it.isNotEmpty() }.sorted()
|
||||||
taggedItems = items
|
taggedItems = items
|
||||||
taggableApps = apps.map { app -> TaggableItem(app, items.any { app.key == it.key }) }
|
taggableApps = apps.map { app -> TaggableItem(app, items.any { app.key == it.key }) }
|
||||||
taggableOther = items.mapNotNull { item ->
|
taggableOther = items.mapNotNull { item ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user