mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix possible crash
This commit is contained in:
parent
3be7a5a69f
commit
2dd1d2ac56
@ -35,8 +35,10 @@ struct Sidebar: View {
|
||||
}
|
||||
}
|
||||
.onChange(of: navigation.sidebarSectionChanged) { _ in
|
||||
if let tabSelection = navigation.tabSelection {
|
||||
scrollScrollViewToItem(scrollView: scrollView, for: navigation.tabSelection)
|
||||
}
|
||||
}
|
||||
.listStyle(.sidebar)
|
||||
}
|
||||
.onAppear {
|
||||
|
Loading…
Reference in New Issue
Block a user