Skip to content

Commit

Permalink
Fix crash when tapping Show-All
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Jun 20, 2024
1 parent 9036403 commit 31554ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct ConsoleListGroupedSectionView: View {

if prefix.count < objects.count {
#if os(iOS) || os(visionOS)
NavigationLink(destination: ConsoleStaticList(entities: objects).inlineNavigationTitle(title)) {
NavigationLink(destination: ConsoleStaticList(entities: objects).injecting(environment).inlineNavigationTitle(title)) {
PlainListSeeAllView(count: objects.count)
}
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ struct PlainListExpandableSectionHeader<Destination: View>: View {
.font(.subheadline.weight(.medium).monospacedDigit())
if !isSeeAllHidden {
Spacer()
Text("See All")
Text("Show All")
.foregroundColor(.accentColor)
.font(.subheadline)
.background(NavigationLink("", destination: destination).opacity(0))
Expand All @@ -241,7 +241,7 @@ struct PlainListSeeAllView: View {
let count: Int

var body: some View {
(Text("See All").foregroundColor(.accentColor) +
(Text("Show All").foregroundColor(.accentColor) +
Text(" (\(count))"))
.font(.subheadline)
.foregroundColor(.secondary)
Expand Down

0 comments on commit 31554ed

Please sign in to comment.