Make a copy of monitor data

This commit is contained in:
Paul Kaplan committed 2017-05-04 10:36:53 -04:00
1 parent 125d8ebd06
commit d01a5f5bd0
1 file changed
+1 -1
+1 -1
View File
@@ -6,7 +6,7 @@ const reducer = function (state, action) {
if (typeof state === 'undefined') state = initialState;
switch (action.type) {
case UPDATE_MONITORS:
return action.monitors;
return [...action.monitors];
default:
return state;
}