Skip to content

Commit

Permalink
fix: Avoid blink of the empty state when we back from a transfer on p…
Browse files Browse the repository at this point in the history
…hones
  • Loading branch information
tevincent committed Feb 25, 2025
1 parent 3a876ab commit bc2ff94
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ private fun DetailPane(
navigator: ThreePaneScaffoldNavigator<DestinationContent>,
hasTransfer: () -> Boolean,
) {
when (val destinationContent = navigator.currentDestination?.content) {
val isWindowLarge = LocalWindowAdaptiveInfo.current.isWindowLarge()
val destinationContent = if (isWindowLarge) navigator.currentDestination?.content else navigator.safeCurrentContent()

when (destinationContent) {
null -> {
NoSelectionEmptyState(hasTransfer())
}
Expand Down

0 comments on commit bc2ff94

Please sign in to comment.