From 386c3968c7ab50e76c8e4a17e638d27332fb4218 Mon Sep 17 00:00:00 2001
From: DD Liu <liudi@media.mit.edu>
Date: Tue, 9 May 2017 17:34:48 -0400
Subject: [PATCH] add to monitors instead of replacing them. We will have a
 separate action for removing monitors.

---
 src/reducers/monitors.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/reducers/monitors.js b/src/reducers/monitors.js
index e8b4fa947..46cbb2c75 100644
--- a/src/reducers/monitors.js
+++ b/src/reducers/monitors.js
@@ -5,8 +5,9 @@ const initialState = [];
 const reducer = function (state, action) {
     if (typeof state === 'undefined') state = initialState;
     switch (action.type) {
+    // Adds or updates monitors
     case UPDATE_MONITORS:
-        return [...action.monitors];
+        return [...action.monitors, ...state];
     default:
         return state;
     }
-- 
GitLab