From d141dceb41565fb8ccbccd868e42150a18a2f1c0 Mon Sep 17 00:00:00 2001 From: Evgenii Kozlov Date: Wed, 17 Aug 2022 19:38:20 +0300 Subject: [PATCH] DROID-348 Editor | Fix | Do not suggest "Bookmark" among "Object types" in slash widget (#2523) --- .../anytypeio/anytype/presentation/editor/EditorViewModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/presentation/src/main/java/com/anytypeio/anytype/presentation/editor/EditorViewModel.kt b/presentation/src/main/java/com/anytypeio/anytype/presentation/editor/EditorViewModel.kt index ea44f04ca4..20bc4d7a89 100644 --- a/presentation/src/main/java/com/anytypeio/anytype/presentation/editor/EditorViewModel.kt +++ b/presentation/src/main/java/com/anytypeio/anytype/presentation/editor/EditorViewModel.kt @@ -4253,7 +4253,7 @@ class EditorViewModel( controlPanelInteractor.onEvent(panelEvent) return } - getObjectTypes() { objectTypes -> + getObjectTypes(excluded = listOf(ObjectType.BOOKMARK_TYPE)) { objectTypes -> getRelations { relations -> val widgetState = SlashExtensions.getUpdatedSlashWidgetState( text = event.filter, @@ -4333,7 +4333,7 @@ class EditorViewModel( getRelations { proceedWithRelations(it) } } is SlashItem.Main.Objects -> { - getObjectTypes() { + getObjectTypes(excluded = listOf(ObjectType.BOOKMARK_TYPE)) { proceedWithObjectTypes(it) } }