 
   handleDisable: ->
     for key, id of CONFIG
-      config.set(key, null)
+      config.set(key)
     config.set('plugin.secretary.ship', -1)
     @setState
       notifySecretary: -1


module.exports =
  reactClass: SecretaryArea
  pluginDidLoad: ->
    window.dispatchEvent new Event 'secretary.load'
  pluginDidUnload: ->
    window.dispatchEvent new Event 'secretary.unload'

    shipgraph: shipgraph
  componentDidMount: ->
    window.addEventListener 'game.response', @handleResponse
    window.addEventListener 'secretary.unload', @pluginWillUnload
    @pluginDidLoad()
  componentWillUnmount: ->
    window.removeEventListener 'game.response', @handleResponse
    window.removeEventListener 'secretary.unload', @pluginWillUnload

  pluginDidLoad: ->
    if @state.notifySecretary > 0
      @updateNotifyConfig(@state.notifySecretary)

  pluginWillUnload: ->
    for key, id of CONFIG
      config.set(key)

  handleResponse: (e) ->
    {method, path, body, postBody} = e.detail
