From f77780be4040aa6f9e11ae5547de5aa9b23d771e Mon Sep 17 00:00:00 2001 From: Akansha Sakhre Date: Tue, 3 Sep 2024 23:16:37 +0530 Subject: [PATCH] fixed copy in hsm --- src/containers/Template/Form/Template.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/containers/Template/Form/Template.tsx b/src/containers/Template/Form/Template.tsx index 88850bdb3..638d54c56 100644 --- a/src/containers/Template/Form/Template.tsx +++ b/src/containers/Template/Form/Template.tsx @@ -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) {