Skip to content

Commit

Permalink
Merge pull request #3056 from glific/fix/copy
Browse files Browse the repository at this point in the history
Fixed copy in hsm
  • Loading branch information
kurund authored Sep 3, 2024
2 parents 97bfd7f + e9a40b1 commit 5e4e6dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/containers/Template/Form/Template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,11 @@ const Template = ({

let translationsCopy: any = {};
if (template) {
if (payloadCopy.isHsm) {
payloadCopy.category = category.label || category;
payloadCopy.example = getExampleFromBody(payloadCopy.body, variables);
}

if (template.sessionTemplate.sessionTemplate.language.id === language?.id) {
payloadCopy.languageId = language?.id;
if (payloadCopy.type) {
Expand Down

0 comments on commit 5e4e6dc

Please sign in to comment.