Fix clone tx template on the templates UI.

This commit is contained in:
Kailash Nadh 2022-07-02 16:34:19 +05:30
parent d3774d606a
commit bc07a459ea

View file

@ -166,7 +166,12 @@ export default Vue.extend({
},
cloneTemplate(name, t) {
const data = { name, body: t.body, type: t.type };
const data = {
name,
type: t.type,
subject: t.subject,
body: t.body,
};
this.$api.createTemplate(data).then((d) => {
this.$api.getTemplates();
this.$emit('finished');