Skip to content

Commit

Permalink
fix: solved reload method issue
Browse files Browse the repository at this point in the history
  • Loading branch information
interactord committed Jun 11, 2024
1 parent 06da035 commit 61d740d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/LinkNavigator/Core/Core/SingleLinkNavigator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ extension SingleLinkNavigator {
/// - items: The new `ItemValue` to be applied to the last view controller.
/// - isAnimated: A flag indicating whether the reload should be animated.
private func _rootReloadLast(item: LinkItem, isAnimated _: Bool) {
guard let lastPath = getCurrentPaths().last else { return }
guard let lastPath = getCurrentRootPaths().last else { return }
guard let rootController else { return }
guard
let new = routeBuilderItemList.first(where: { $0.matchPath == lastPath })?.routeBuild(
Expand Down

0 comments on commit 61d740d

Please sign in to comment.