From 18caa2f9fdb05a9ebcc0842359200c1ba66f880a Mon Sep 17 00:00:00 2001 From: Ivan Semenov Date: Mon, 24 Jun 2024 15:11:55 +0200 Subject: [PATCH] [github] fix PR creation metadata items list GitOrigin-RevId: 4e24ce25aa6a5ac6222e02ea4e6623a809ae3338 --- .../plugins/github/ui/component/LabeledListPanelHandle.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/github/src/org/jetbrains/plugins/github/ui/component/LabeledListPanelHandle.kt b/plugins/github/src/org/jetbrains/plugins/github/ui/component/LabeledListPanelHandle.kt index f5278cdc4fde..bb212cd69c52 100644 --- a/plugins/github/src/org/jetbrains/plugins/github/ui/component/LabeledListPanelHandle.kt +++ b/plugins/github/src/org/jetbrains/plugins/github/ui/component/LabeledListPanelHandle.kt @@ -136,16 +136,11 @@ internal class LabeledListPanelHandle(cs: CoroutineScope, private fun LabeledListPanelViewModel.getSelectableItemsBatchFlow(): Flow>> { val current = items.value - val currentSet = current.toSet() return flow { if (current.isNotEmpty()) { emit(Result.success(current)) } - selectableItems.mapNotNull { it.result }.first().map { list -> - list.filter { !currentSet.contains(it) } - }.let { - emit(it) - } + selectableItems.mapNotNull { it.result }.first().let { emit(it) } } } }