Skip to content

Commit

Permalink
refactor: Use popBackStack with correct route instead of just poppi…
Browse files Browse the repository at this point in the history
…ng back blindly
  • Loading branch information
KevinBoulongne committed Dec 18, 2024
1 parent 4b0c0bb commit 4b6198c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fun NewTransferNavHost(navController: NavHostController, closeActivity: () -> Un
navController.navigate(UploadSuccessDestination(args.transferType, transferUrl))
},
navigateToUploadError = { navController.navigate(UploadErrorDestination) },
navigateBackToImportFiles = { navController.popBackStack() },
navigateBackToImportFiles = { navController.popBackStack(route = ImportFilesDestination, inclusive = false) },
)
}
composable<UploadSuccessDestination> {
Expand Down

0 comments on commit 4b6198c

Please sign in to comment.