From 1586ea658ba3d392029fd4d2e6adc85badc8f779 Mon Sep 17 00:00:00 2001 From: Josh Medeski Date: Fri, 6 Sep 2024 07:52:03 -0500 Subject: [PATCH] fix: remove hide attached because it breaks the app --- lister/list.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lister/list.go b/lister/list.go index e38675c..1891342 100644 --- a/lister/list.go +++ b/lister/list.go @@ -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{