mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID- 3291 Widgets | Fix | Fix favorite objects filtering for widgets with list layout (#2061)
This commit is contained in:
parent
9c562edf77
commit
b24decc685
1 changed files with 5 additions and 7 deletions
|
@ -96,17 +96,15 @@ class ListWidgetContainer(
|
|||
space = SpaceId(widget.config.space),
|
||||
subscription = subscription,
|
||||
keys = keys,
|
||||
targets = order.keys
|
||||
.sortedBy { key -> order[key] }
|
||||
.take(resolveLimit()),
|
||||
targets = order.keys.sortedBy { key -> order[key] }
|
||||
)
|
||||
).map { objects ->
|
||||
buildWidgetViewWithElements(
|
||||
objects = objects
|
||||
.filter { obj ->
|
||||
obj.isArchived != true && obj.isDeleted != true
|
||||
}
|
||||
.sortedBy { obj -> order[obj.id] },
|
||||
.filter { obj -> obj.notDeletedNorArchived }
|
||||
.sortedBy { obj -> order[obj.id] }
|
||||
.take(resolveLimit())
|
||||
,
|
||||
fieldParser = fieldParser
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue