Digital PCT265 defect PRODDEF-28200 - Prevent navigation to the same selected index fixing hang ups.

This commit is contained in:
Hedden, Kyle Matthew 2024-04-23 19:00:27 -04:00
parent 7488ba3bcb
commit f3f779f702

View File

@ -364,10 +364,9 @@ open class SubNavManagerController: ViewController, MVMCoreViewManagerProtocol,
private func go(to index: Int) async {
// Load controller from the cache
guard index != self.index,
guard index != tabs.selectedIndex,
let controller = viewControllers[index] else { return }
needToTrackTabSelect = true
self.index = index
await NavigationHandler.shared().replace(viewController: controller, navigationController:subNavigationController, delegateObject:delegateObject(), tryToReplace: false, animated: true)
}