added missing data in deferred.resolve()

This commit is contained in:
Jonathan Labreuille
2016-08-02 17:18:18 +02:00
parent 2e88d7cce0
commit b05344b1d3

View File

@@ -69,7 +69,7 @@ define('ajax', ['mailpoet', 'jquery', 'underscore'], function(MailPoet, jQuery,
null, null,
'json' 'json'
).then(function(data) { ).then(function(data) {
deferred.resolve(); deferred.resolve(data);
}, function(xhr) { }, function(xhr) {
deferred.reject(xhr.responseJSON); deferred.reject(xhr.responseJSON);
}); });