Skip to content

Commit

Permalink
fixed copy in hsm
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Sep 3, 2024
1 parent 7584cb0 commit f77780b
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);

Check warning on line 858 in src/containers/Template/Form/Template.tsx

View check run for this annotation

Codecov / codecov/patch

src/containers/Template/Form/Template.tsx#L858

Added line #L858 was not covered by tests
}

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

0 comments on commit f77780b

Please sign in to comment.