Merge branch 'bugfix/CXTDT-574791-2' into 'release/20_0_0'

Bugfix/cxtdt 574791 2

### Summary
Fix navigation crash on controller replace.

### JIRA Ticket
https://onejira.verizon.com/browse/CXTDT-574791

Co-authored-by: Hedden, Kyle Matthew <kyle.hedden@verizonwireless.com>

See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core/-/merge_requests/338
This commit is contained in:
Pfeil, Scott Robert 2024-06-21 14:44:42 +00:00
commit 460aa06678

View File

@ -68,9 +68,9 @@ open class NavigationOperation: MVMCoreOperation, UINavigationControllerDelegate
let index = navigationController.getIndexOfViewController(with: pageType) else {
return false
}
var viewControllers = navigationController.viewControllers[...index]
var viewControllers = Array(navigationController.viewControllers[...index])
viewControllers[index] = viewController
set(viewControllers: Array(viewControllers), navigationController: navigationController, animated: animated)
set(viewControllers: viewControllers, navigationController: navigationController, animated: animated)
return true
}