Skip to content

Commit

Permalink
Merge commit '436e621df8faab1ff5079e72fae79421a9f39687'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpatrickmorgan committed Aug 18, 2022
2 parents 5777d76 + 436e621 commit e1fafda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/FlowStacks/RoutableCollection+utilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public extension RoutableCollection where Element: RouteProtocol {
/// Goes back to the root screen (index 0). The resulting screen count
/// will be 1.
mutating func goBackToRoot() {
guard self.count > 1 else { return }
goBackTo(index: 0)
}

Expand Down

0 comments on commit e1fafda

Please sign in to comment.