Skip to content

Commit

Permalink
Fix Prevent nav back when it's not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
YiBeomSeok committed Aug 14, 2024
1 parent 420076f commit b06c394
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ internal fun InterestsListDetailScreen(
) {
topicScreen(
showBackButton = !listDetailNavigator.isListPaneVisible(),
onBackClick = listDetailNavigator::navigateBack,
onBackClick = {
if(listDetailNavigator.canNavigateBack()) {
listDetailNavigator.navigateBack()
}
},
onTopicClick = ::onTopicClickShowDetailPane,
)
composable(route = TOPIC_ROUTE) {
Expand Down

0 comments on commit b06c394

Please sign in to comment.