       linkedWorkflows[randomIndex]
 
   getWorkflow: (selectedWorkflowID) ->
-    apiClient.type('workflows').get({ active: true, id: "#{selectedWorkflowID}" })
+    apiClient.type('workflows').get({ active: true, id: "#{selectedWorkflowID}", project_id: @state.project.id })
       .catch (error) =>
         console.error error
         # TODO: Handle 404 once json-api-client error handling is fixed.

        else
          console.log "No workflow #{selectedWorkflowID} for project #{@state.project.id}"
          @clearInactiveWorkflow(selectedWorkflowID)
            .then(@getSelectedWorkflow())

  clearInactiveWorkflow: (selectedWorkflowID) ->
    preferences = @state.preferences

        @listenToPreferences preferences
      )

  getSelectedWorkflow: (project, preferences) ->
    @setState({ loadingSelectedWorkflow: true })
    # preference workflow query, then user selected workflow, then project owner set workflow, then default workflow
    # if none of those are set, select random workflow
