Make a copy of monitor data
This commit is contained in:
1 parent
125d8ebd06
commit
d01a5f5bd0
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user