title: mapStateToProps must return a plain object. Instead received undefined
body: <p>I'm trying to use ternary statement within <code>mapStateToProps</code> but it doesn't seem to be updating the state and I keep running into <code>mapStateToProps must return a plain object. Instead received undefined.</code> Is this syntax incorrect?</p>
  
  <pre><code>const mapStateToProps =  state =&gt; {
  console.log("current state is:" + JSON.stringify(state.model));
  state.model.selectedPerson ?
      {
          selectedCourse: state.model.selectedPerson.selectedCourse,
          startDate: state.model.selectedPerson.startDate,
          courseType: state.model.selectedPerson.courseType,
      } :
      {
          selectedCourse: [],
          startDate: '',
          courseType: '',
      };
  };  
  
  const reducers = Object.assign({}, { model: courseReducers });
  export { reducers };
  
  export default connect(mapStateToProps, mapDispatchToProps)
  (AddCourseDialog);
  </code></pre>
  
  <p>I'm trying to use a form within a custom modal and the container above is contained within 2 other parent containers. I have not explored using redux form yet.</p>