Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v authored Sep 21, 2024
1 parent a3d3e46 commit 4442dbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/msg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func showBothSelects(state map[string]string) executor.ExecuteOutput {
// Use the flag as a key to track dropdown selections
sections[0].Selects.Items = append(sections[0].Selects.Items, api.Select{
Name: option.Description, // Adjust name based on flags
Command: cmdPrefix(fmt.Sprintf("select_dynamic %s", option.Flags[0])), // Handle dynamic dropdown
Command: cmdPrefix(fmt.Sprintf("select_dynamic %s-%s", option.Flags[0],state["first"])), // Handle dynamic dropdown
OptionGroups: []api.OptionGroup{
{
Name: option.Description,
Expand Down Expand Up @@ -286,7 +286,7 @@ func allSelectionsMade(state map[string]string, options []Option) bool {
if option.Flags[0] == "-h" {
continue
}
if state[option.Flags[0]] == "" {
if state[fmt.Sprintf("%s-%s", option.Flags[0]-state["first"])] == "" {

Check failure on line 289 in cmd/msg/main.go

View workflow job for this annotation

GitHub Actions / Release

invalid operation: operator - not defined on option.Flags[0] (variable of type string)
return false
}
}
Expand Down

0 comments on commit 4442dbc

Please sign in to comment.