From 6a559febc292c272da24df440d80ae3b26a31d7f Mon Sep 17 00:00:00 2001
From: ralder <ralder@yandex.ru>
Date: Thu, 9 Jul 2015 03:32:03 -0700
Subject: fix BrowserStore bug in actionOnItemsWithPrefix and refactor
 BrowserStore

---
 web/react/stores/error_store.jsx | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

(limited to 'web/react/stores/error_store.jsx')

diff --git a/web/react/stores/error_store.jsx b/web/react/stores/error_store.jsx
index 3aed6aef2..203b692ec 100644
--- a/web/react/stores/error_store.jsx
+++ b/web/react/stores/error_store.jsx
@@ -29,18 +29,11 @@ var ErrorStore = assign({}, EventEmitter.prototype, {
     BrowserStore.removeItem("last_error");
   },
   getLastError: function() {
-    var error = null;
-    try {
-        error = JSON.parse(BrowserStore.getItem("last_error"));
-    }
-    catch (err) {
-    }
-
-    return error;
+    return BrowserStore.getItem('last_error');
   },
 
   _storeLastError: function(error) {
-    BrowserStore.setItem("last_error", JSON.stringify(error));
+    BrowserStore.setItem("last_error", error);
   },
 });
 
-- 
cgit v1.2.3-1-g7c22

