summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/stores')
-rw-r--r--webapp/stores/error_store.jsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/webapp/stores/error_store.jsx b/webapp/stores/error_store.jsx
index b72c45ed4..38f5eb249 100644
--- a/webapp/stores/error_store.jsx
+++ b/webapp/stores/error_store.jsx
@@ -62,6 +62,14 @@ class ErrorStoreClass extends EventEmitter {
BrowserStore.setGlobalItem('last_error_conn', count);
}
+ clearError(message) {
+ const lastError = this.getLastError();
+
+ if (lastError && lastError.message === message) {
+ this.clearLastError(true);
+ }
+ }
+
clearLastError(force) {
var lastError = this.getLastError();