Skip to content

Commit 1586ea6

Browse files
committed
fix: remove hide attached because it breaks the app
1 parent 989ef47 commit 1586ea6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lister/list.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,9 @@ func (l *RealLister) List(opts ListOptions) (model.SeshSessions, error) {
3434
return model.SeshSessions{}, err
3535
}
3636
fullOrderedIndex = append(fullOrderedIndex, sessions.OrderedIndex...)
37-
filteredIndex := fullOrderedIndex[:0] // Create a slice with the same underlying array but length 0
3837
for _, i := range sessions.OrderedIndex {
39-
if opts.HideAttached && sessions.Directory[i].Attached == 1 {
40-
// TODO: remove the item from the fullOrderedIndex
41-
continue
42-
}
43-
filteredIndex = append(filteredIndex, i)
4438
fullDirectory[i] = sessions.Directory[i]
4539
}
46-
fullOrderedIndex = filteredIndex
4740
}
4841

4942
return model.SeshSessions{

0 commit comments

Comments
 (0)