Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v authored Sep 20, 2024
1 parent 391016c commit a3d3e46
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cmd/msg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ func (e *MsgExecutor) Execute(_ context.Context, in executor.ExecuteInput) (exec

switch action {
case "select_first":
for key := range e.state[sessionID] {
if key != "first" { // Keep the first selection
delete(e.state[sessionID], key)
}
}
// for key := range e.state[sessionID] {
// if key != "first" { // Keep the first selection
// delete(e.state[sessionID], key)
// }
// }

// Store the selection from the first dropdown
e.state[sessionID]["first"] = value
return showBothSelects(e.state[sessionID]), nil
Expand Down

0 comments on commit a3d3e46

Please sign in to comment.