Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v authored Sep 22, 2024
1 parent baf8738 commit daa495b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/msg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ func showBothSelects(state map[string]string) executor.ExecuteOutput {
// Check if there's an InitialOption and update the state if it’s not already set
if _, exists := state[flagKey]; !exists && option.Default != "" {
state[flagKey] = fmt.Sprintf("%s %s", option.Flags[0], option.Default)
}
} else if !exists {
state[flagKey] = "" // Set a default empty state if no default is provided
}

// Add the dropdown with the InitialOption if available
sections[0].Selects.Items = append(sections[0].Selects.Items, api.Select{
Expand Down

0 comments on commit daa495b

Please sign in to comment.