     TaskPlanActions.updateDescription(id, desc)
 
   renderTaskPlanRow: (plan) ->
-    <tr key={plan.target_id}>
+    <tr key={plan.id}>
       <td>{plan.name}</td>
       <td>
         <TutorDateInput


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

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


  setOpensAt: (value, period) ->
    {planId} = @props
    TaskPlanActions.updateOpensAt(planId, value, period?.id)

  setDueAt: (value, period) ->
    {planId} = @props
    TaskPlanActions.updateDueAt(planId, value, period?.id)

  togglePeriodsDisplay: (ev) ->
    @setState(showingPeriods: not ev.target.checked)
