mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-28 12:03:33 +00:00
fix(ctx): panic: index out of range when only one context in uncloud config (closes #52)
This commit is contained in:
@@ -78,6 +78,5 @@ func buildContextOptions(contexts []string, current string) []huh.Option[string]
|
|||||||
options[i] = opt
|
options[i] = opt
|
||||||
}
|
}
|
||||||
|
|
||||||
options[1].Selected(true)
|
|
||||||
return options
|
return options
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user