summaryrefslogtreecommitdiffstats
path: root/web/react/stores/error_store.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/stores/error_store.jsx')
-rw-r--r--web/react/stores/error_store.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/react/stores/error_store.jsx b/web/react/stores/error_store.jsx
index 69d6cca7f..ed46d6b68 100644
--- a/web/react/stores/error_store.jsx
+++ b/web/react/stores/error_store.jsx
@@ -46,6 +46,10 @@ class ErrorStoreClass extends EventEmitter {
storeLastError(error) {
BrowserStore.setItem('last_error', error);
}
+
+ clearLastError() {
+ BrowserStore.removeItem('last_error');
+ }
}
var ErrorStore = new ErrorStoreClass();