Skip to content

Commit

Permalink
fix: remove hide attached because it breaks the app
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmedeski committed Sep 6, 2024
1 parent 989ef47 commit 1586ea6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lister/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,9 @@ func (l *RealLister) List(opts ListOptions) (model.SeshSessions, error) {
return model.SeshSessions{}, err
}
fullOrderedIndex = append(fullOrderedIndex, sessions.OrderedIndex...)
filteredIndex := fullOrderedIndex[:0] // Create a slice with the same underlying array but length 0
for _, i := range sessions.OrderedIndex {
if opts.HideAttached && sessions.Directory[i].Attached == 1 {
// TODO: remove the item from the fullOrderedIndex
continue
}
filteredIndex = append(filteredIndex, i)
fullDirectory[i] = sessions.Directory[i]
}
fullOrderedIndex = filteredIndex
}

return model.SeshSessions{
Expand Down

0 comments on commit 1586ea6

Please sign in to comment.