diff --git a/static/js/utils.js b/static/js/utils.js index 7089ed3..0ac1f51 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1044,9 +1044,9 @@ oml.upload = function(fileslist, callback) { request.onreadystatechange = function() { if (request.readyState == 4) { if (request.status == 200) { - next(); var response = JSON.parse(request.responseText); - ids.concat(response.data.ids); + ids = ids.concat(response.data.ids); + next(); } else { callback(null, { code: request.status,