Skip to content

Commit 61d740d

Browse files
committed
fix: solved reload method issue
1 parent 06da035 commit 61d740d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/LinkNavigator/Core/Core/SingleLinkNavigator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ extension SingleLinkNavigator {
331331
/// - items: The new `ItemValue` to be applied to the last view controller.
332332
/// - isAnimated: A flag indicating whether the reload should be animated.
333333
private func _rootReloadLast(item: LinkItem, isAnimated _: Bool) {
334-
guard let lastPath = getCurrentPaths().last else { return }
334+
guard let lastPath = getCurrentRootPaths().last else { return }
335335
guard let rootController else { return }
336336
guard
337337
let new = routeBuilderItemList.first(where: { $0.matchPath == lastPath })?.routeBuild(

0 commit comments

Comments
 (0)