diff --git a/Shared/Navigation/Sidebar.swift b/Shared/Navigation/Sidebar.swift index a2b3a712..7498304f 100644 --- a/Shared/Navigation/Sidebar.swift +++ b/Shared/Navigation/Sidebar.swift @@ -36,7 +36,7 @@ struct Sidebar: View { } .onChange(of: navigation.sidebarSectionChanged) { _ in if let tabSelection = navigation.tabSelection { - scrollScrollViewToItem(scrollView: scrollView, for: navigation.tabSelection) + scrollScrollViewToItem(scrollView: scrollView, for: tabSelection) } } .listStyle(.sidebar)