Skip to content

Commit

Permalink
Merge pull request #815 from arkivanov/fix-details-panel-placeholder
Browse files Browse the repository at this point in the history
Fixed details panel placeholder showing in SINGLE mode
arkivanov authored Dec 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 8387e01 + 20b36ba commit ccd1ce6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -320,7 +320,12 @@ private fun <DC : Any, DT : Any> DetailsPanel(
) {
when (val child = it.instance) {
is PanelChild.Panel -> content(child.child)
is PanelChild.Empty -> placeholder()

is PanelChild.Empty -> {
if (it == EmptyChild3) {
placeholder()
}
}
}
}
}

0 comments on commit ccd1ce6

Please sign in to comment.