Skip to content

Commit

Permalink
Add uuid to list items
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Oct 8, 2024
1 parent c316717 commit 5e068bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flows/actions/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (a *baseAction) evaluateMessageWpp(run flows.FlowRun, languages []envs.Lang
}
var evaluatedListItems []flows.ListItems

for _, item := range actionListItems {
for i, item := range actionListItems {
translatedListMessage := run.GetTranslatedTextArray(uuids.UUID(a.UUID()), "list_message", []string{item.Title, item.Description}, languages)

if len(translatedListMessage[0]) == 0 {
Expand Down Expand Up @@ -277,7 +277,7 @@ func (a *baseAction) evaluateMessageWpp(run flows.FlowRun, languages []envs.Lang
logEvent(events.NewErrorf("option title text evaluated to empty string"))
}

evaluatedListItems = append(evaluatedListItems, flows.ListItems{Title: evaluatedTitle, Description: evaluatedDescription})
evaluatedListItems = append(evaluatedListItems, flows.ListItems{Title: evaluatedTitle, Description: evaluatedDescription, UUID: actionListItems[i].UUID})
}

return evaluatedHeaderText, evaluatedFooter, evaluatedText, evaluatedListItems, evaluatedButtonText, evaluatedAttachments, evaluatedReplyMessage
Expand Down

0 comments on commit 5e068bb

Please sign in to comment.