From d941ec1dff96e955ff962cccff658269e739c33f Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Wed, 1 Aug 2018 16:37:48 -0400 Subject: [PATCH] do not modify state object directly --- src/redux/preview.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/redux/preview.js b/src/redux/preview.js index fdc704d00..ebb68588d 100644 --- a/src/redux/preview.js +++ b/src/redux/preview.js @@ -68,9 +68,8 @@ module.exports.previewReducer = (state, action) => { return Object.assign({}, state, {curatedStudios: action.items}); case 'ADD_PROJECT_TO_STUDIO': // add studio id to our studios-that-this-project-belongs-to set. - state.currentStudioIds.push(action.studioId); return Object.assign({}, state, { - currentStudioIds: state.currentStudioIds.slice() + currentStudioIds: state.currentStudioIds.concat(action.studioId) }); case 'REMOVE_PROJECT_FROM_STUDIO': return Object.assign({}, state, {