mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Better handling of API server errors
This commit is contained in:
@@ -47,7 +47,10 @@ export default class DiscussionList extends Component {
|
||||
this.loading(true);
|
||||
this.discussions([]);
|
||||
m.endComputation();
|
||||
this.loadResults().then(this.parseResults.bind(this));
|
||||
this.loadResults().then(this.parseResults.bind(this), response => {
|
||||
this.loading(false);
|
||||
m.redraw();
|
||||
});
|
||||
}
|
||||
|
||||
onunload() {
|
||||
|
Reference in New Issue
Block a user