Rename global variable to match the old code

[MAILPOET-2453]
This commit is contained in:
Pavel Dohnal
2019-12-19 09:21:31 +01:00
committed by Rostislav Wolný
parent 12af14fd90
commit 3230bff824
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ export default () => {
const dateSettingData = { const dateSettingData = {
dateTypes: window.mailpoet_date_types, dateTypes: window.mailpoet_date_types,
dateFormats: window.mailpoet_date_formats, dateFormats: window.mailpoet_date_formats,
months: window.mailpoet_date_months, months: window.mailpoet_month_names,
}; };
formData.settings.segments = formData.settings.segments ? formData.settings.segments : []; formData.settings.segments = formData.settings.segments ? formData.settings.segments : [];
const defaultState = { const defaultState = {

View File

@@ -21,7 +21,7 @@
var mailpoet_custom_fields = <%= json_encode(custom_fields) %>; var mailpoet_custom_fields = <%= json_encode(custom_fields) %>;
var mailpoet_date_types = <%= json_encode(date_types) %>; var mailpoet_date_types = <%= json_encode(date_types) %>;
var mailpoet_date_formats = <%= json_encode(date_formats) %>; var mailpoet_date_formats = <%= json_encode(date_formats) %>;
var mailpoet_date_months = <%= json_encode(month_names) %>; var mailpoet_month_names = <%= json_encode(month_names) %>;
<% endautoescape %> <% endautoescape %>
</script> </script>