From 01536aa5508721a0d23c12aad520f5f34ba8e75d Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Tue, 8 Mar 2016 10:56:38 -0500
Subject: Globally exported all stores when developer mode is enabled

---
 web/react/stores/admin_store.jsx | 4 ++++
 1 file changed, 4 insertions(+)

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

diff --git a/web/react/stores/admin_store.jsx b/web/react/stores/admin_store.jsx
index eb3254cfe..5c911e94b 100644
--- a/web/react/stores/admin_store.jsx
+++ b/web/react/stores/admin_store.jsx
@@ -156,3 +156,7 @@ AdminStoreClass.dispatchToken = AppDispatcher.register((payload) => {
 });
 
 export default AdminStore;
+
+if (window.mm_config.EnableDeveloper === 'true') {
+    window.AdminStore = AdminStore;
+}
-- 
cgit v1.2.3-1-g7c22


From d7cdcf082fab6c0cb7c2fe4bed821bd1a8000e69 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Mon, 8 Feb 2016 07:26:10 -0500
Subject: Convering client to react-router.

---
 web/react/stores/admin_store.jsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

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

diff --git a/web/react/stores/admin_store.jsx b/web/react/stores/admin_store.jsx
index 5c911e94b..9f7f6e7ff 100644
--- a/web/react/stores/admin_store.jsx
+++ b/web/react/stores/admin_store.jsx
@@ -121,7 +121,11 @@ class AdminStoreClass extends EventEmitter {
     }
 
     getSelectedTeams() {
-        return BrowserStore.getItem('seleted_teams');
+        const result = BrowserStore.getItem('seleted_teams');
+        if (!result) {
+            return {};
+        }
+        return result;
     }
 
     saveSelectedTeams(teams) {
@@ -156,7 +160,3 @@ AdminStoreClass.dispatchToken = AppDispatcher.register((payload) => {
 });
 
 export default AdminStore;
-
-if (window.mm_config.EnableDeveloper === 'true') {
-    window.AdminStore = AdminStore;
-}
-- 
cgit v1.2.3-1-g7c22

