From f99a77e5be4a09636c593eb3750f9997968c66d0 Mon Sep 17 00:00:00 2001 From: hirenko-v <132065511+hirenko-v@users.noreply.github.com> Date: Tue, 24 Sep 2024 00:52:39 +0300 Subject: [PATCH] tt --- cmd/msg/main.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/cmd/msg/main.go b/cmd/msg/main.go index 96251f7..bd54991 100644 --- a/cmd/msg/main.go +++ b/cmd/msg/main.go @@ -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 @@ -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 {