mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-17 19:12:37 -05:00
protect against failure
This commit is contained in:
parent
c2dd9564b3
commit
948f9b357e
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ export default DiscourseController.extend({
|
||||||
editReason: this.get("editReason")
|
editReason: this.get("editReason")
|
||||||
}).then(function(result) {
|
}).then(function(result) {
|
||||||
|
|
||||||
if (result.responseJson.action === "enqueued") {
|
if (result.responseJson && result.responseJson.action === "enqueued") {
|
||||||
self.send('postWasEnqueued');
|
self.send('postWasEnqueued');
|
||||||
self.destroyDraft();
|
self.destroyDraft();
|
||||||
self.close();
|
self.close();
|
||||||
|
|
Loading…
Reference in a new issue