From 39fd541f56129f266f85b7bc10eef7ced223d764 Mon Sep 17 00:00:00 2001 From: Naresh Date: Fri, 21 Jun 2024 18:22:25 +0530 Subject: [PATCH] testing flag --- .../MVMCore/PresentationHandling/NavigationOperation.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift b/MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift index a6aa16c..09d3ab7 100644 --- a/MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift +++ b/MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift @@ -119,7 +119,9 @@ open class NavigationOperation: MVMCoreOperation, UINavigationControllerDelegate toNavigationControllerViewControllers = viewControllers NavigationHandler.shared().onNavigation.send((.willNavigate, self)) guard !checkAndHandleForCancellation() else { return } - navigationController.setViewControllers(viewControllers, animated: animated) + if viewControllers.count > 0 { + navigationController.setViewControllers(viewControllers, animated: animated) + } } /** Has the navigation controller pop.