mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3601 Primitives | Tech | Storing archived types (#2357)
This commit is contained in:
parent
adc36f1a6b
commit
fd1c45f780
3 changed files with 4 additions and 9 deletions
|
@ -65,7 +65,7 @@ class SpaceTypesViewModel(
|
|||
storeOfObjectTypes.getAll().mapNotNull { objectType ->
|
||||
val resolvedLayout =
|
||||
objectType.recommendedLayout ?: return@mapNotNull null
|
||||
if (notAllowedTypesLayouts.contains(resolvedLayout)) {
|
||||
if (notAllowedTypesLayouts.contains(resolvedLayout) || objectType.isArchived == true) {
|
||||
return@mapNotNull null
|
||||
} else {
|
||||
objectType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue