Обновление редуктора

case 'SOME_ACTION':
return {
   ...state,
   contents: state.contents.map(
      (content, i) => i === 1 ? {
         ...content,
         text: action.payload
      } :
      content
   )
}
Odd Osprey