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:
Jarek Radosz
2022-10-25 12:17:00 +02:00
committed by GitHub
parent ca97850726
commit 3949efb45f

View File

@@ -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);