diff --git a/app/assets/javascripts/discourse/controllers/edit-category.js.es6 b/app/assets/javascripts/discourse/controllers/edit-category.js.es6 index 0810068b477..d77783bc0a3 100644 --- a/app/assets/javascripts/discourse/controllers/edit-category.js.es6 +++ b/app/assets/javascripts/discourse/controllers/edit-category.js.es6 @@ -68,8 +68,8 @@ export default Ember.Controller.extend(ModalFunctionality, { this.set('saving', true); model.set('parentCategory', parentCategory); - self.set('saving', false); this.get('model').save().then(function(result) { + self.set('saving', false); self.send('closeModal'); model.setProperties({slug: result.category.slug, id: result.category.id }); DiscourseURL.redirectTo("/c/" + Discourse.Category.slugFor(model));