diff --git a/src/reducers/monitors.js b/src/reducers/monitors.js index e8b4fa947eee4862f24be5ea8727caef6793fe5c..46cbb2c759776b8fc8cea59f68d79f03e79df717 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; }