       label: 'Tool name'
       color: '#00ff00'
       details: []
-    @props.workflow.update 'tasks'
+    @props.onChange @props.task
 
   editToolDetails: (task, toolIndex) ->
     @props.task.tools[toolIndex].details ?= []

  toggleHidePrevMarksEnabled: (e) ->
    enableHidePrevMarks = e.target.checked
    @props.task.enableHidePrevMarks = enableHidePrevMarks
    @props.workflow.update 'tasks'

  toggleMultipleChoice: (e) ->
    newType = if e.target.checked


  removeChoice: (choicesName, index) ->
    @props.task[choicesName].splice index, 1
    @props.onChange @props.task
