Skip to content

Commit 63546c1

Browse files
97chosinteractord
authored andcommitted
fix: TabLinkNavigator - Fixed rootReloadLast method
1 parent a1ce727 commit 63546c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/LinkNavigator/Core/Core/TabLinkNavigator/TabPartialNavigator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ extension TabPartialNavigator: TabLinkNavigatorProtocol {
232232
guard !viewControllers.isEmpty else { return }
233233

234234
let reloadedVC = viewControllers.reduce(rootController.viewControllers) { current, next in
235-
guard let idx = current.firstIndex(of: next) else { return current }
235+
guard let idx = current.firstIndex(where: { ($0 as? MatchPathUsable)?.matchPath == next.matchPath }) else { return current }
236236
var variableCurrentVC = current
237237
variableCurrentVC[idx] = next
238238
return variableCurrentVC

0 commit comments

Comments
 (0)