fix: properly initialize key actions in picker (#2586)

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
mine
Alexej Disterhoft 2024-03-04 21:56:38 +01:00 committed by GitHub
parent 0d16531016
commit b850775d41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ type Picker struct {
func NewPicker() *Picker {
return &Picker{
List: tview.NewList(),
actions: ui.KeyActions{},
actions: *ui.NewKeyActions(),
}
}