diff options
Diffstat (limited to 'webapp/stores')
-rw-r--r-- | webapp/stores/error_store.jsx | 8 |
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(); |