Skip to content

Commit

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

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

// Store the selection from the first dropdown
Expand All @@ -101,13 +101,6 @@ func (e *MsgExecutor) Execute(_ context.Context, in executor.ExecuteInput) (exec
e.state[sessionID][flag] = strings.TrimPrefix(value, flag+" ")
return showBothSelects(e.state[sessionID]), nil


// case "select_plain":
// // Store dynamic dropdown selections (flag is passed in the command)
// flag := "123"
// e.state[sessionID][flag] = value
// return showBothSelects(e.state[sessionID]), nil

}

if strings.TrimSpace(in.Command) == pluginName {
Expand Down

0 comments on commit f99a77e

Please sign in to comment.