Skip to content

Commit

Permalink
fix: remove controlMail from editor (get controlMail from backend only)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianGille committed May 22, 2024
1 parent d0ab478 commit b992967
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/editor/src/js/vue/components/esp/esp-send-mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ const EspComponent = Vue.component('EspForm', {
campaignMailName: data?.campaignMailName,
subject: data?.subject,
planification: data?.planification,
controlMail: data?.controlMail,
typeCampagne: data?.typeCampagne,
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const DscComponent = Vue.component('DscComponent', {
campaignMailName: '',
planification: '',
subject: '',
controlMail: '',
type: ESP_TYPE.DSC,
},
style: styleHelper,
Expand All @@ -47,12 +46,10 @@ const DscComponent = Vue.component('DscComponent', {
id,
additionalApiData: { planification, typeCampagne } = {},
} = this.fetchedProfile;
const controlMail = this.vm.currentUser().email;
this.profile = {
campaignMailName: campaignMailName ?? '',
planification: planification ?? '',
subject: subject ?? '',
controlMail,
typeCampagne: typeCampagne ?? '',
id: id ?? '',
};
Expand Down

0 comments on commit b992967

Please sign in to comment.