diff --git a/app/assets/javascripts/discourse/controllers/composer.js.es6 b/app/assets/javascripts/discourse/controllers/composer.js.es6 index 7a97eda7a..5afe148ff 100644 --- a/app/assets/javascripts/discourse/controllers/composer.js.es6 +++ b/app/assets/javascripts/discourse/controllers/composer.js.es6 @@ -220,7 +220,7 @@ export default DiscourseController.extend({ editReason: this.get("editReason") }).then(function(result) { - if (result.responseJson.action === "enqueued") { + if (result.responseJson && result.responseJson.action === "enqueued") { self.send('postWasEnqueued'); self.destroyDraft(); self.close();