Skip to content

Commit

Permalink
ttt
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v authored Sep 21, 2024
1 parent 784c71e commit 10ce185
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/msg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ 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
Expand Down

0 comments on commit 10ce185

Please sign in to comment.