mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Reset error props on Topic model (#18739)
If there's an error loading a topic, and later you load it successfully - the the stale error message would still briefly show up every time you navigate to that topic
This commit is contained in:
parent
ca97850726
commit
3949efb45f
@ -358,6 +358,15 @@ export default RestModel.extend({
|
||||
loaded: true,
|
||||
});
|
||||
this._checkIfShouldShowRevisions();
|
||||
|
||||
// Reset all error props
|
||||
topic.setProperties({
|
||||
errorLoading: false,
|
||||
errorTitle: null,
|
||||
errorHtml: null,
|
||||
errorMessage: null,
|
||||
noRetry: false,
|
||||
});
|
||||
})
|
||||
.catch((result) => {
|
||||
this.errorLoading(result);
|
||||
|
Loading…
Reference in New Issue
Block a user