Skip to content

Commit

Permalink
fix: properly initialize key actions in picker (#2586)
Browse files Browse the repository at this point in the history
This commit fixes a bug introcuded in v0.32.0 where the shell-in and
attach commands would fail with a nil pointer exception for pods with
more than one container.

Resolves #2585
  • Loading branch information
nobbs committed Mar 4, 2024
1 parent 0d16531 commit b850775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/view/picker.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Picker struct {
func NewPicker() *Picker {
return &Picker{
List: tview.NewList(),
actions: ui.KeyActions{},
actions: *ui.NewKeyActions(),
}
}

Expand Down

0 comments on commit b850775

Please sign in to comment.