Load templates via GET, so it can be prefetchable

[MAILPOET-2378]
This commit is contained in:
Ján Mikláš
2019-09-25 13:22:33 +02:00
committed by Jack Kitterhing
parent d0ebee755c
commit dcb71efdd5

View File

@@ -68,7 +68,7 @@ class NewsletterTemplates extends React.Component {
}
componentWillMount() {
MailPoet.Ajax.post({
MailPoet.Ajax.get({
api_version: window.mailpoet_api_version,
endpoint: 'newsletterTemplates',
action: 'getAll',