Skip to content

Commit

Permalink
Fix jewel api usage
Browse files Browse the repository at this point in the history
  • Loading branch information
fscarponi committed Jan 25, 2024
1 parent b517a08 commit ef0dc23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ fun PackageSearchInfoPanel(
modifier = Modifier.fillMaxWidth(),
tabs = tabs.map { infoPanelContent ->
TabData.Default(
selected = activeTabTitle == infoPanelContent.tabTitle,
selected = activeTabTitle == infoPanelContent.tabTitleData.tabTitle,
closable = false,
content = { tabState ->
SimpleTabContent(infoPanelContent.tabTitle, tabState)
SimpleTabContent(infoPanelContent.tabTitleData.tabTitle, tabState)
},
onClick = { viewModel.setActiveTabTitle(infoPanelContent.tabTitle) },
onClick = { viewModel.setActiveTabTitle(infoPanelContent.tabTitleData.tabTitle) },
)
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fun PackageSearchModulesTree(
onExpandAll = viewModel::expandAll,
onCollapseAll = {
val rootIds = tree.roots.map { it.id }.toSet()
viewModel.treeState.selectedKeys = (viewModel.treeState.selectedKeys intersect rootIds).toList()
viewModel.treeState.selectedKeys = viewModel.treeState.selectedKeys intersect rootIds
viewModel.collapseAll()
},
)
Expand All @@ -74,7 +74,7 @@ fun PackageSearchModulesTree(
viewModel.treeState.selectedKeys = tree.walkBreadthFirst()
.take(1)
.map { it.data.id }
.toList()
.toSet()
}
}
Box {
Expand Down

0 comments on commit ef0dc23

Please sign in to comment.