FIX: missing error message when editing topics
This commit is contained in:
parent
56f12cd9f1
commit
ccc943c118
|
@ -286,8 +286,8 @@ export default ObjectController.extend(SelectedPostsCount, BufferedContent, {
|
||||||
self.rollbackBuffer();
|
self.rollbackBuffer();
|
||||||
self.set('editingTopic', false);
|
self.set('editingTopic', false);
|
||||||
}).catch(function(error) {
|
}).catch(function(error) {
|
||||||
if (error && error.responseText) {
|
if (error && error.jqXHR && error.jqXHR.responseText) {
|
||||||
bootbox.alert($.parseJSON(error.responseText).errors[0]);
|
bootbox.alert($.parseJSON(error.jqXHR.responseText).errors[0]);
|
||||||
} else {
|
} else {
|
||||||
bootbox.alert(I18n.t('generic_error'));
|
bootbox.alert(I18n.t('generic_error'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue