Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v committed Sep 29, 2024
1 parent 1fb7138 commit 872cc9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/job/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ func (e *MsgExecutor) extractStateDetails(state *slack.BlockActionStates) stateD
for _, blocks := range state.Values {

for id, act := range blocks {
id = strings.TrimPrefix(id, pluginName)
id = strings.Fields(id)[0]
switch id {
id_full := strings.TrimPrefix(id, pluginName)
id_cmd := strings.Fields(id_full)[0]
switch id_cmd {
case "select_first":
details.job = act.SelectedOption.Value
case "select_dynamic":
key := strings.Fields(id)[1]
key := strings.Fields(id_full)[1]
if act.Value != "" {
details.params[key] = act.Value
} else if act.SelectedOption.Value != "" {
Expand Down

0 comments on commit 872cc9b

Please sign in to comment.