diff --git a/app/assets/javascripts/experiments/dropdown_actions.js b/app/assets/javascripts/experiments/dropdown_actions.js index eb093b18a..a15c27597 100644 --- a/app/assets/javascripts/experiments/dropdown_actions.js +++ b/app/assets/javascripts/experiments/dropdown_actions.js @@ -66,12 +66,12 @@ window.location.replace(data.path); }) .on('ajax:error', function(e, error) { + form.clearFormErrors(); var msg = JSON.parse(error.responseText); renderFormError(e, form.find("#experiment_project_id"), msg.message.toString()); - }) - .clearFormErrors(); + }); } } // Reload after successfully updated experiment