Remove unused function

[MAILPOET-3848]
This commit is contained in:
Jan Lysý
2021-10-08 15:05:56 +02:00
committed by Veljko V
parent d74d5c7c18
commit e2f5d18a51

View File

@@ -82,27 +82,6 @@ class WelcomeScheduling extends React.Component {
handleAfterTimeTypeChange = (event) => this.handleValueChange('afterTimeType', event.target.value); handleAfterTimeTypeChange = (event) => this.handleValueChange('afterTimeType', event.target.value);
handleNext = () => {
MailPoet.Ajax.post({
api_version: window.mailpoet_api_version,
endpoint: 'newsletters',
action: 'create',
data: {
type: 'welcome',
options: this.state,
},
}).done((response) => {
this.showTemplateSelection(response.data.id);
}).fail((response) => {
if (response.errors.length > 0) {
MailPoet.Notice.error(
response.errors.map((error) => error.message),
{ scroll: true }
);
}
});
};
showTemplateSelection = (newsletterId) => { showTemplateSelection = (newsletterId) => {
this.props.history.push(`/template/${newsletterId}`); this.props.history.push(`/template/${newsletterId}`);
}; };