mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
protect against failure
This commit is contained in:
parent
c2dd9564b3
commit
948f9b357e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user