 
   setOpensAt: (value, period) ->
     {planId} = @props
-    TaskPlanActions.updateOpensAt(planId, value, period?.target_id)
+    TaskPlanActions.updateOpensAt(planId, value, period?.id)
 
   setDueAt: (value, period) ->
     {planId} = @props
-    TaskPlanActions.updateDueAt(planId, value, period?.target_id)
+    TaskPlanActions.updateDueAt(planId, value, period?.id)
 
   togglePeriodsDisplay: (ev) ->
     @setState(showingPeriods: not ev.target.checked)


  render: ->
    plan = TaskPlanStore.get(@props.planId)

    if @state.showingPeriods then @renderShownPeriods(plan) else @renderHiddenPeriods(plan)

    TaskPlanActions.updateDescription(id, desc)

  renderTaskPlanRow: (plan) ->
    <tr key={plan.id}>
      <td>{plan.name}</td>
      <td>
        <TutorDateInput
