 
       this.props.subjectSet.delete()
         .then =>
-          announceSetChange()
           @props.project.uncacheLink 'subject_sets'
           @context.router.push "/lab/#{@props.project.id}"
         .catch (error) =>

VALID_SUBJECT_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.gif', '.svg']
INVALID_FILENAME_CHARS = ['/', '\\', ':', ',']
MAX_FILE_SIZE = 600 * 1024

announceSetChange = ->
  apiClient.type('subject_sets').emit 'add-or-remove'

SubjectSetListingRow = React.createClass
  displayName: 'SubjectSetListingRow'

  removeSubject: (subject) ->
    @props.subjectSet.removeLink('subjects', subject.id).then =>
      @setSubjectResources(@props.subjectSet.id, @state.page)

EditSubjectSetPage = React.createClass
  displayName: 'EditSubjectSetPage'
