mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-16 04:06:36 +00:00
Fix timeline tag group filter
This commit is contained in:
parent
bd51dfc0b6
commit
e41dcd6976
1 changed files with 4 additions and 3 deletions
|
@ -94,8 +94,10 @@ struct TimelineTab: View {
|
|||
lastTimelineFilter = newValue
|
||||
}
|
||||
switch newValue {
|
||||
case .tagGroup:
|
||||
break
|
||||
case let .tagGroup(title, _):
|
||||
if let group = tagGroups.first(where: { $0.title == title}) {
|
||||
selectedTagGroup = group
|
||||
}
|
||||
default:
|
||||
selectedTagGroup = nil
|
||||
}
|
||||
|
@ -295,7 +297,6 @@ struct TimelineTab: View {
|
|||
Menu("timeline.filter.tag-groups") {
|
||||
ForEach(tagGroups) { group in
|
||||
Button {
|
||||
selectedTagGroup = group
|
||||
timeline = .tagGroup(title: group.title, tags: group.tags)
|
||||
} label: {
|
||||
VStack {
|
||||
|
|
Loading…
Reference in a new issue