 
   addDemoSubjectSet: ->
     @props.project.addLink 'subject_sets', [DEMO_SUBJECT_SET_ID]
-      .then (subjectSet) =>
-        console.log 'ADDED', subjectSet
+      .then =>
+        @props.project.get 'subject_sets'
+      .then ([subjectSet]) =>
+        @props.workflow.addLink 'subject_sets', [subjectSet.id]
 
   afterDelete: ->
     @props.project.uncacheLink 'workflows'

{Navigation} = require 'react-router'
tasks = require '../../classifier/tasks'

DEMO_SUBJECT_SET_ID = '1166'

EditWorkflowPage = React.createClass
  displayName: 'EditWorkflowPage'

          </tbody>
        </table>
        {if projectSubjectSets.length is 0
          <p>
            This project has no subject sets.{' '}
            <button type="button" onClick={@addDemoSubjectSet}>Add an example subject set</button>
          </p>}
      </div>
    }</PromiseRenderer>

